VirtualBox

Changeset 53728 in vbox


Ignore:
Timestamp:
Jan 4, 2015 5:13:27 AM (10 years ago)
Author:
vboxsync
Message:

VMSVGA3d/darwin: Using the use OpenGL 3.2 Core profile works better, but there are some snags like glGetString(GT_EXTENSIONS). Addressed a bunch of warnings.

Location:
trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r53624 r53728  
    42324232TEMPLATE_VBOXR3OSX105_LDFLAGS.darwin     = $(VBOX_DARWIN_DEF_SDK_10_5_LDFLAGS) \
    42334233        -read_only_relocs suppress \
     4234        -current_version $(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD) \
     4235        -compatibility_version $(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD)
     4236
     4237#
     4238# Template for building R3 shared objects / DLLs with the 10.7 Mac OS X SDK.
     4239# Identical to VBoxR3Dll, except for the DYLIB, the classic_linker and SDK bits.
     4240#
     4241TEMPLATE_VBoxR3DllOsX107  = VBox Ring 3 SO/DLLs for OS X 10.7
     4242TEMPLATE_VBoxR3DllOsX107_EXTENDS = VBoxR3Dll
     4243TEMPLATE_VBoxR3DllOsX107_TOOL               = LLVMGXX42MACHO
     4244TEMPLATE_VBoxR3DllOsX107_DEFS.darwin        = $(VBOX_DARWIN_DEF_SDK_10_7_DEFS) PIC
     4245TEMPLATE_VBoxR3DllOsX107_CFLAGS.darwin      = $(VBOX_DARWIN_DEF_SDK_10_7_CFLAGS) -fno-common
     4246TEMPLATE_VBoxR3DllOsX107_CXXFLAGS.darwin    = $(VBOX_DARWIN_DEF_SDK_10_7_CXXFLAGS)
     4247TEMPLATE_VBoxR3DllOsX107_OBJCFLAGS.darwin   = $(VBOX_DARWIN_DEF_SDK_10_7_OBJCFLAGS)
     4248TEMPLATE_VBoxR3DllOsX107_OBJCXXFLAGS.darwin = $(VBOX_DARWIN_DEF_SDK_10_7_OBJCFLAGS)
     4249TEMPLATE_VBoxR3DllOsX107_LDFLAGS.darwin     = $(VBOX_DARWIN_DEF_SDK_10_7_LDFLAGS) \
    42344250        -current_version $(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD) \
    42354251        -compatibility_version $(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD)
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-ogl.cpp

    r53624 r53728  
    8989
    9090#ifdef RT_OS_WINDOWS
    91 # define OGLGETPROCADDRESS       wglGetProcAddress
     91# define OGLGETPROCADDRESS      wglGetProcAddress
     92
    9293#elif defined(RT_OS_DARWIN)
    9394# include <dlfcn.h>
     95# define OGLGETPROCADDRESS      MyNSGLGetProcAddress
    9496void *MyNSGLGetProcAddress(const char *name)
    9597{
     98    /* Another copy in shaderapi.c. */
    9699    static void *s_image = NULL;
    97100    if (s_image == NULL)
     
    99102    return (s_image ? dlsym(s_image, name) : NULL);
    100103}
    101 # define OGLGETPROCADDRESS      MyNSGLGetProcAddress
     104
    102105#else
    103106# define OGLGETPROCADDRESS(x)   glXGetProcAddress((const GLubyte *)x)
     
    167170# define VMSVGA3D_CHECK_LAST_ERROR_WARN(pState, pContext)                   do { } while (0)
    168171#endif
     172
     173/** Macro wrapping glGetIntegerv for use during initialization.
     174 * This will release log errors.  */
     175#define VMSVGA3D_INIT_CHECKED_GL_GET_INTEGER_VALUE(a_enmGlValue, a_pDest) \
     176    do \
     177    { \
     178        glGetIntegerv(a_enmGlValue, a_pDest); \
     179        GLenum iGlError = glGetError(); \
     180        if (RT_UNLIKELY(iGlError != GL_NO_ERROR)) \
     181            LogRel(("VMSVGA3d: glGetIntegerv(" #a_enmGlValue " (%#x),) -> %#x\n", (int)a_enmGlValue, iGlError)); \
     182    } while (0)
     183
     184/** Macro for doing something and then checking for errors during initialization. */
     185#define VMSVGA3D_INIT_CHECKED(a_Expr) \
     186    do \
     187    { \
     188        a_Expr; \
     189        GLenum iGlError = glGetError(); \
     190        if (RT_UNLIKELY(iGlError != GL_NO_ERROR)) \
     191            LogRel(("VMSVGA3d: " #a_Expr " -> %#x\n", (int)a_enmGlValue, iGlError)); \
     192    } while (0)
     193
    169194
    170195typedef struct
     
    577602RT_C_DECLS_END
    578603
    579 static bool vmsvga3dCheckGLExtension(const char *pExtensionName)
    580 {
     604
     605/**
     606 * Checks if the given OpenGL extension is supported.
     607 *
     608 * @returns true if supported, false if not.
     609 * @param   fGLVersion          The OpenGL version.
     610 * @param   pszWantedExtension  The name of the OpenGL extension we want.
     611 * @remarks Init time only.
     612 */
     613static bool vmsvga3dCheckGLExtension(float fGLVersion, const char *pszWantedExtension)
     614{
     615#if defined(RT_OS_DARWIN)
     616    /*
     617     * OpenGL 3.2+ core profile (glGetString(GL_EXTENSIONS) returns NULL).
     618     */
     619
     620    /* Seems like extensions are assimilated into the OpenGL core, so we do
     621       hardcoded checks for these as per gl3.h. */
     622    if (   fGLVersion >= 3.0
     623        && (   strcmp(pszWantedExtension, "GL_ARB_framebuffer_object") == 0
     624            || strcmp(pszWantedExtension, "GL_ARB_map_buffer_range") == 0
     625            || strcmp(pszWantedExtension, "GL_ARB_vertex_array_object") == 0) )
     626        return true;
     627    if (   fGLVersion >= 3.1
     628        && (   strcmp(pszWantedExtension, "GL_ARB_copy_buffer") == 0
     629            || strcmp(pszWantedExtension, "GL_ARB_uniform_buffer_object") == 0
     630            || strcmp(pszWantedExtension, "GL_ARB_vertex_array_object") == 0) )
     631        return true;
     632    if (   fGLVersion >= 3.2
     633        && (   strcmp(pszWantedExtension, "GL_ARB_draw_elements_base_vertex") == 0
     634            || strcmp(pszWantedExtension, "GL_ARB_provoking_vertex") == 0
     635            || strcmp(pszWantedExtension, "GL_ARB_sync") == 0
     636            || strcmp(pszWantedExtension, "GL_ARB_texture_multisample") == 0) )
     637        return true;
     638    if (   fGLVersion >= 3.3
     639        && (   strcmp(pszWantedExtension, "GL_ARB_blend_func_extended") == 0
     640            || strcmp(pszWantedExtension, "GL_ARB_sampler_objects") == 0
     641            || strcmp(pszWantedExtension, "GL_ARB_explicit_attrib_location") == 0
     642            || strcmp(pszWantedExtension, "GL_ARB_occlusion_query2") == 0
     643            || strcmp(pszWantedExtension, "GL_ARB_shader_bit_encoding") == 0
     644            || strcmp(pszWantedExtension, "GL_ARB_texture_rgb10_a2ui") == 0
     645            || strcmp(pszWantedExtension, "GL_ARB_texture_swizzle") == 0
     646            || strcmp(pszWantedExtension, "GL_ARB_timer_query") == 0
     647            || strcmp(pszWantedExtension, "GL_ARB_vertex_type_2_10_10_10_rev") == 0) )
     648        return true;
     649    if (   fGLVersion >= 4.0
     650        && (   strcmp(pszWantedExtension, "GL_ARB_texture_query_lod") == 0
     651            || strcmp(pszWantedExtension, "GL_ARB_draw_indirect") == 0
     652            || strcmp(pszWantedExtension, "GL_ARB_gpu_shader5") == 0
     653            || strcmp(pszWantedExtension, "GL_ARB_gpu_shader_fp64") == 0
     654            || strcmp(pszWantedExtension, "GL_ARB_shader_subroutine") == 0
     655            || strcmp(pszWantedExtension, "GL_ARB_tessellation_shader") == 0
     656            || strcmp(pszWantedExtension, "GL_ARB_texture_buffer_object_rgb32") == 0
     657            || strcmp(pszWantedExtension, "GL_ARB_texture_cube_map_array") == 0
     658            || strcmp(pszWantedExtension, "GL_ARB_texture_gather") == 0
     659            || strcmp(pszWantedExtension, "GL_ARB_transform_feedback2") == 0
     660            || strcmp(pszWantedExtension, "GL_ARB_transform_feedback3") == 0) )
     661        return true;
     662    if (   fGLVersion >= 4.1
     663        && (   strcmp(pszWantedExtension, "GL_ARB_ES2_compatibility") == 0
     664            || strcmp(pszWantedExtension, "GL_ARB_get_program_binary") == 0
     665            || strcmp(pszWantedExtension, "GL_ARB_separate_shader_objects") == 0
     666            || strcmp(pszWantedExtension, "GL_ARB_shader_precision") == 0
     667            || strcmp(pszWantedExtension, "GL_ARB_vertex_attrib_64bit") == 0
     668            || strcmp(pszWantedExtension, "GL_ARB_viewport_array") == 0) )
     669        return true;
     670
     671
     672    /* Search the GL_EXTENSIONS array. */
     673    static PFNGLGETSTRINGIPROC s_pfnGlGetStringi = NULL;
     674    if (!s_pfnGlGetStringi)
     675    {
     676         s_pfnGlGetStringi = (PFNGLGETSTRINGIPROC)OGLGETPROCADDRESS("glGetStringi");
     677         AssertLogRelReturn(s_pfnGlGetStringi, false);
     678    }
     679
     680    GLint cExtensions = 1024;
     681    VMSVGA3D_INIT_CHECKED_GL_GET_INTEGER_VALUE(GL_NUM_EXTENSIONS, &cExtensions);
     682
     683    for (GLint idxCur = 0; idxCur < cExtensions; idxCur++)
     684    {
     685        const char *pszCur = (const char *)s_pfnGlGetStringi(GL_EXTENSIONS, idxCur);
     686        if (pszCur && !strcmp(pszCur, pszWantedExtension))
     687            return true;
     688    }
     689
     690#else
     691    /*
     692     * Old interface.
     693     */
    581694    char *pSupportedExtensions = (char *)glGetString(GL_EXTENSIONS);
    582695    char *pExtensionSupported  = pSupportedExtensions;
    583     size_t cbExtension         = strlen(pExtensionName);
     696    size_t cchWantedExtension  = strlen(pszWantedExtension);
    584697
    585698    while (true)
    586699    {
    587         pExtensionSupported = strstr(pExtensionSupported, pExtensionName);
     700        pExtensionSupported = strstr(pExtensionSupported, pszWantedExtension);
    588701        if (pExtensionSupported == NULL)
    589702            break;
    590703
    591704        if (    (    pExtensionSupported == pSupportedExtensions
    592                  || *(pExtensionSupported-1) == ' ')
    593             &&  (    pExtensionSupported[cbExtension] == ' '
    594                  ||  pExtensionSupported[cbExtension] == 0)
     705                 ||  pExtensionSupported[-1] == ' ')
     706            &&  (    pExtensionSupported[cchWantedExtension] == ' '
     707                 ||  pExtensionSupported[cchWantedExtension] == '\0')
    595708           )
    596709            return true;
    597710
    598         pExtensionSupported += cbExtension;
    599     }
     711        pExtensionSupported += cchWantedExtension;
     712    }
     713#endif
     714
    600715    return false;
    601716}
     717
     718
     719/**
     720 * Outputs GL_EXTENSIONS list to the release log.
     721 */
     722static void vmsvga3dLogRelExtensions(void)
     723{
     724#if defined(RT_OS_DARWIN)
     725    /* OpenGL 3.0 interface (glGetString(GL_EXTENSIONS) return NULL). */
     726    PFNGLGETSTRINGIPROC pfnGlGetStringi = (PFNGLGETSTRINGIPROC)OGLGETPROCADDRESS("glGetStringi");
     727    AssertLogRelReturnVoid(pfnGlGetStringi);
     728
     729    bool fBuffered = RTLogRelSetBuffering(true);
     730
     731    GLint cExtensions = 1024;
     732    VMSVGA3D_INIT_CHECKED_GL_GET_INTEGER_VALUE(GL_NUM_EXTENSIONS, &cExtensions);
     733    LogRel(("VMSVGA3d: OpenGL extensions (GL_NUM_EXTENSIONS=%d)", cExtensions));
     734
     735    for (GLint idxCur = 0; idxCur < cExtensions; idxCur++)
     736    {
     737        const char *pszExt = (const char *)pfnGlGetStringi(GL_EXTENSIONS, idxCur);
     738        const char *pszFmt = idxCur % 1 ? "  %s" : "\nVMSVGA3d:  %s";
     739        LogRel((pszFmt, pszExt));
     740    }
     741
     742    RTLogRelSetBuffering(fBuffered);
     743    LogRel(("\n"));
     744#else
     745    /* Old interface. */
     746    LogRel(("VMSVGA3d: OpenGL extensions: %s\n\n", glGetString(GL_EXTENSIONS)));
     747#endif
     748}
     749
    602750
    603751int vmsvga3dInit(PVGASTATE pThis)
     
    653801    LogRel(("VMSVGA3d: OpenGL version: %s\nOpenGL Vendor: %s\nOpenGL Renderer: %s\n", glGetString(GL_VERSION), glGetString(GL_VENDOR), glGetString(GL_RENDERER)));
    654802    LogRel(("VMSVGA3d: OpenGL shader language version: %s\n", glGetString(GL_SHADING_LANGUAGE_VERSION)));
    655     LogRel(("VMSVGA3d: OpenGL extensions: %s\n\n", glGetString(GL_EXTENSIONS)));
    656     pState->fGLVersion     = atof((const char *)glGetString(GL_VERSION));
    657 
    658     if (vmsvga3dCheckGLExtension("GL_ARB_framebuffer_object"))
     803    vmsvga3dLogRelExtensions();
     804
     805    pState->fGLVersion = atof((const char *)glGetString(GL_VERSION));
     806
     807    if (vmsvga3dCheckGLExtension(pState->fGLVersion, "GL_ARB_framebuffer_object"))
    659808    {
    660809        pState->ext.glIsRenderbuffer = (PFNGLISRENDERBUFFERPROC)OGLGETPROCADDRESS("glIsRenderbuffer");
     
    721870
    722871    /* OpenGL 3.2 core */
    723     if (vmsvga3dCheckGLExtension("GL_ARB_draw_elements_base_vertex"))
     872    if (vmsvga3dCheckGLExtension(pState->fGLVersion, "GL_ARB_draw_elements_base_vertex"))
    724873    {
    725874        pState->ext.glDrawElementsBaseVertex          = (PFNGLDRAWELEMENTSBASEVERTEXPROC)OGLGETPROCADDRESS("glDrawElementsBaseVertex");
     
    730879
    731880    /* OpenGL 3.2 core */
    732     if (vmsvga3dCheckGLExtension("GL_ARB_provoking_vertex"))
     881    if (vmsvga3dCheckGLExtension(pState->fGLVersion, "GL_ARB_provoking_vertex"))
    733882    {
    734883        pState->ext.glProvokingVertex                 = (PFNGLPROVOKINGVERTEXPROC)OGLGETPROCADDRESS("glProvokingVertex");
     
    738887
    739888    /* Extension support */
    740     pState->ext.fEXT_stencil_two_side = vmsvga3dCheckGLExtension("GL_EXT_stencil_two_side");
     889    pState->ext.fEXT_stencil_two_side = vmsvga3dCheckGLExtension(pState->fGLVersion, "GL_EXT_stencil_two_side");
    741890
    742891    /* First set sensible defaults. */
     
    754903
    755904    /* Query capabilities */
    756     glGetIntegerv(GL_MAX_LIGHTS, &pState->caps.maxActiveLights);
    757     VMSVGA3D_CHECK_LAST_ERROR_WARN(pState, pContext);
    758     glGetIntegerv(GL_MAX_TEXTURE_BUFFER_SIZE, &pState->caps.maxTextureBufferSize);
    759 #ifdef DEBUG_bird
    760     if (pState->fGLVersion >= 3.1) /* darwin: Requires GL 3.1, so triggers on older mac os x versions. */
    761 #endif
    762         VMSVGA3D_CHECK_LAST_ERROR_WARN(pState, pContext);
    763     glGetIntegerv(GL_MAX_TEXTURE_UNITS_ARB, &pState->caps.maxTextures);
    764     VMSVGA3D_CHECK_LAST_ERROR_WARN(pState, pContext);
    765     glGetIntegerv(GL_MAX_CLIP_DISTANCES, &pState->caps.maxClipDistances);
    766     VMSVGA3D_CHECK_LAST_ERROR_WARN(pState, pContext);
    767     glGetIntegerv(GL_MAX_COLOR_ATTACHMENTS, &pState->caps.maxColorAttachments);
    768     VMSVGA3D_CHECK_LAST_ERROR_WARN(pState, pContext);
    769     glGetIntegerv(GL_MAX_RECTANGLE_TEXTURE_SIZE, &pState->caps.maxRectangleTextureSize);
    770     VMSVGA3D_CHECK_LAST_ERROR_WARN(pState, pContext);
    771     glGetIntegerv(GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &pState->caps.maxTextureAnisotropy);
    772     VMSVGA3D_CHECK_LAST_ERROR_WARN(pState, pContext);
    773     glGetFloatv(GL_ALIASED_POINT_SIZE_RANGE, pState->caps.flPointSize);
    774     VMSVGA3D_CHECK_LAST_ERROR_WARN(pState, pContext);
     905    VMSVGA3D_INIT_CHECKED_GL_GET_INTEGER_VALUE(GL_MAX_LIGHTS, &pState->caps.maxActiveLights);
     906    VMSVGA3D_INIT_CHECKED_GL_GET_INTEGER_VALUE(GL_MAX_TEXTURE_BUFFER_SIZE, &pState->caps.maxTextureBufferSize);
     907    VMSVGA3D_INIT_CHECKED_GL_GET_INTEGER_VALUE(GL_MAX_TEXTURE_UNITS_ARB, &pState->caps.maxTextures);
     908    VMSVGA3D_INIT_CHECKED_GL_GET_INTEGER_VALUE(GL_MAX_CLIP_DISTANCES, &pState->caps.maxClipDistances);
     909    VMSVGA3D_INIT_CHECKED_GL_GET_INTEGER_VALUE(GL_MAX_COLOR_ATTACHMENTS, &pState->caps.maxColorAttachments);
     910    VMSVGA3D_INIT_CHECKED_GL_GET_INTEGER_VALUE(GL_MAX_RECTANGLE_TEXTURE_SIZE, &pState->caps.maxRectangleTextureSize);
     911    VMSVGA3D_INIT_CHECKED_GL_GET_INTEGER_VALUE(GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &pState->caps.maxTextureAnisotropy);
     912    VMSVGA3D_INIT_CHECKED(glGetFloatv(GL_ALIASED_POINT_SIZE_RANGE, pState->caps.flPointSize));
    775913
    776914    if (pState->ext.glGetProgramivARB)
    777915    {
    778         pState->ext.glGetProgramivARB(GL_FRAGMENT_PROGRAM_ARB, GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB, &pState->caps.maxFragmentShaderTemps);
    779         VMSVGA3D_CHECK_LAST_ERROR_WARN(pState, pContext);
    780         pState->ext.glGetProgramivARB(GL_FRAGMENT_PROGRAM_ARB, GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB, &pState->caps.maxFragmentShaderInstructions);
    781         VMSVGA3D_CHECK_LAST_ERROR_WARN(pState, pContext);
    782         pState->ext.glGetProgramivARB(GL_VERTEX_PROGRAM_ARB, GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB, &pState->caps.maxVertexShaderTemps);
    783         VMSVGA3D_CHECK_LAST_ERROR_WARN(pState, pContext);
    784         pState->ext.glGetProgramivARB(GL_VERTEX_PROGRAM_ARB, GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB, &pState->caps.maxVertexShaderInstructions);
    785         VMSVGA3D_CHECK_LAST_ERROR_WARN(pState, pContext);
    786     }
    787     pState->caps.fS3TCSupported = vmsvga3dCheckGLExtension("GL_EXT_texture_compression_s3tc");
     916        VMSVGA3D_INIT_CHECKED(pState->ext.glGetProgramivARB(GL_FRAGMENT_PROGRAM_ARB, GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB,
     917                                                            &pState->caps.maxFragmentShaderTemps));
     918        VMSVGA3D_INIT_CHECKED(pState->ext.glGetProgramivARB(GL_FRAGMENT_PROGRAM_ARB, GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB,
     919                                                            &pState->caps.maxFragmentShaderInstructions));
     920        VMSVGA3D_INIT_CHECKED(pState->ext.glGetProgramivARB(GL_VERTEX_PROGRAM_ARB, GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB,
     921                                                            &pState->caps.maxVertexShaderTemps));
     922        VMSVGA3D_INIT_CHECKED(pState->ext.glGetProgramivARB(GL_VERTEX_PROGRAM_ARB, GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB,
     923                                                            &pState->caps.maxVertexShaderInstructions));
     924    }
     925    pState->caps.fS3TCSupported = vmsvga3dCheckGLExtension(pState->fGLVersion, "GL_EXT_texture_compression_s3tc");
    788926
    789927    /* http://http://www.opengl.org/wiki/Detecting_the_Shader_Model
     
    795933     * ATI does not support higher than SM 2.0 functionality in assembly shaders.
    796934     *
    797      * @todo: distinguish between vertex and pixel shaders???
    798935     */
    799     if (vmsvga3dCheckGLExtension("GL_NV_gpu_program4"))
     936    /** @todo: distinguish between vertex and pixel shaders??? */
     937    if (vmsvga3dCheckGLExtension(pState->fGLVersion, "GL_NV_gpu_program4"))
    800938    {
    801939        pState->caps.vertexShaderVersion   = SVGA3DVSVERSION_40;
     
    803941    }
    804942    else
    805     if (    vmsvga3dCheckGLExtension("GL_NV_vertex_program3")
    806         ||  vmsvga3dCheckGLExtension("GL_ARB_shader_texture_lod"))  /* Wine claims this suggests SM 3.0 support */
     943    if (    vmsvga3dCheckGLExtension(pState->fGLVersion, "GL_NV_vertex_program3")
     944        ||  vmsvga3dCheckGLExtension(pState->fGLVersion, "GL_ARB_shader_texture_lod"))  /* Wine claims this suggests SM 3.0 support */
    807945    {
    808946        pState->caps.vertexShaderVersion   = SVGA3DVSVERSION_30;
     
    810948    }
    811949    else
    812     if (vmsvga3dCheckGLExtension("GL_ARB_fragment_program"))
     950    if (vmsvga3dCheckGLExtension(pState->fGLVersion, "GL_ARB_fragment_program"))
    813951    {
    814952        pState->caps.vertexShaderVersion   = SVGA3DVSVERSION_20;
     
    822960    }
    823961
    824     if (!vmsvga3dCheckGLExtension("GL_ARB_vertex_array_bgra"))
    825     {
    826         /* @todo Intel drivers don't support this extension! */
     962    if (!vmsvga3dCheckGLExtension(pState->fGLVersion, "GL_ARB_vertex_array_bgra"))
     963    {
     964        /** @todo Intel drivers don't support this extension! */
    827965        LogRel(("VMSVGA3D: WARNING: Missing required extension GL_ARB_vertex_array_bgra (d3dcolor)!!!\n"));
    828966    }
     
    8931031#endif
    8941032
     1033    LogRel(("VMSVGA3d: Capabilities:\n"));
     1034    LogRel(("VMSVGA3d:   maxActiveLights=%d  maxTextureBufferSize=%d  maxTextures=%d\n",
     1035            pState->caps.maxActiveLights, pState->caps.maxTextureBufferSize, pState->caps.maxTextures));
     1036    LogRel(("VMSVGA3d:   maxClipDistances=%d  maxColorAttachments=%d  maxClipDistances=%d\n",
     1037            pState->caps.maxClipDistances, pState->caps.maxColorAttachments, pState->caps.maxClipDistances));
     1038    LogRel(("VMSVGA3d:   maxColorAttachments=%d  maxRectangleTextureSize=%d  maxTextureAnisotropy=%d\n",
     1039            pState->caps.maxColorAttachments, pState->caps.maxRectangleTextureSize, pState->caps.maxTextureAnisotropy));
     1040    LogRel(("VMSVGA3d:   maxVertexShaderInstructions=%d  maxFragmentShaderInstructions=%d  maxVertexShaderTemps=%d\n",
     1041            pState->caps.maxVertexShaderInstructions, pState->caps.maxFragmentShaderInstructions, pState->caps.maxVertexShaderTemps));
     1042    LogRel(("VMSVGA3d:   maxFragmentShaderTemps=%d  flPointSize={%d.%02u, %d.%02u}\n",
     1043            pState->caps.maxFragmentShaderTemps,
     1044            (int)pState->caps.flPointSize[0], (int)(pState->caps.flPointSize[0] * 100) % 100,
     1045            (int)pState->caps.flPointSize[1], (int)(pState->caps.flPointSize[1] * 100) % 100));
     1046    LogRel(("VMSVGA3d: fragmentShaderVersion=%d  vertexShaderVersion=%d  fS3TCSupported=%d\n",
     1047            pState->caps.fragmentShaderVersion, pState->caps.vertexShaderVersion, pState->caps.fS3TCSupported));
     1048
     1049
    8951050    /* Initialize the shader library. */
    8961051    rc = ShaderInitLib();
  • trunk/src/VBox/Devices/Graphics/shaderlib/directx.c

    r53258 r53728  
    18311831     * memory can be overruled using a registry setting. */
    18321832
     1833#ifndef VBOX
    18331834    int i;
     1835#else
     1836    size_t i;
     1837#endif
    18341838
    18351839    for (i = 0; i < (sizeof(vendor_card_select_table) / sizeof(*vendor_card_select_table)); ++i)
     
    19041908#endif
    19051909
     1910#if defined(RT_OS_DARWIN)
     1911/** Checks if @a pszExtension is one of the extensions we're looking for and
     1912 *  updates @a pGlInfo->supported accordingly. */
     1913static void check_gl_extension(struct wined3d_gl_info *pGlInfo, const char *pszExtension)
     1914{
     1915    size_t i;
     1916    TRACE_(d3d_caps)("- %s\n", debugstr_a(pszExtension));
     1917    for (i = 0; i < RT_ELEMENTS(EXTENSION_MAP); i++)
     1918        if (!strcmp(pszExtension, EXTENSION_MAP[i].extension_string))
     1919        {
     1920            TRACE_(d3d_caps)(" FOUND: %s support.\n", EXTENSION_MAP[i].extension_string);
     1921            pGlInfo->supported[EXTENSION_MAP[i].extension] = TRUE;
     1922            return;
     1923        }
     1924}
     1925#endif
     1926
    19061927/* Context activation is done by the caller. */
    19071928BOOL IWineD3DImpl_FillGLCaps(struct wined3d_adapter *adapter)
     
    19091930    struct wined3d_driver_info *driver_info = &adapter->driver_info;
    19101931    struct wined3d_gl_info *gl_info = &adapter->gl_info;
     1932#if !defined(RT_OS_DARWIN)
    19111933    const char *GL_Extensions    = NULL;
    19121934    const char *WGL_Extensions   = NULL;
     1935#endif
    19131936    const char *gl_vendor_str, *gl_renderer_str, *gl_version_str;
    19141937    struct fragment_caps fragment_caps;
     
    19992022
    20002023    /* Parse the gl supported features, in theory enabling parts of our code appropriately. */
     2024#if !defined(RT_OS_DARWIN)
    20012025    GL_Extensions = (const char *)glGetString(GL_EXTENSIONS);
    20022026    if (!GL_Extensions)
     
    20102034
    20112035    TRACE_(d3d_caps)("GL_Extensions reported:\n");
     2036#endif
    20122037
    20132038    gl_info->supported[WINED3D_GL_EXT_NONE] = TRUE;
     
    20152040    gl_info->supported[VBOX_SHARED_CONTEXTS] = TRUE;
    20162041
     2042#if defined(RT_OS_DARWIN)
     2043    {
     2044        /* We work with OpenGL 3.2+ on darwin, so we need to handle extensions differently. */
     2045        GLint idxExt;
     2046        GLint cExtensions = 1024;
     2047        float fGLVersion = atof((const char *)glGetString(GL_VERSION));
     2048
     2049# define GL_NUM_EXTENSIONS 0x821D /// FIXME
     2050        extern const GLubyte * glGetStringi(GLenum name, GLuint index); /// FIXME
     2051
     2052        glGetIntegerv(GL_NUM_EXTENSIONS, &cExtensions);
     2053        for (idxExt = 0; idxExt < cExtensions; idxExt++)
     2054            check_gl_extension(gl_info, (const char *)glGetStringi(GL_EXTENSIONS, idxExt));
     2055
     2056        if (fGLVersion >= 3.0)
     2057        {
     2058            check_gl_extension(gl_info, "GL_ARB_framebuffer_object");
     2059            check_gl_extension(gl_info, "GL_ARB_map_buffer_range");
     2060            check_gl_extension(gl_info, "GL_ARB_vertex_array_object");
     2061        }
     2062        if (fGLVersion >= 3.1)
     2063        {
     2064            check_gl_extension(gl_info, "GL_ARB_copy_buffer");
     2065            check_gl_extension(gl_info, "GL_ARB_uniform_buffer_object");
     2066        }
     2067        if (fGLVersion >= 3.2)
     2068        {
     2069            check_gl_extension(gl_info, "GL_ARB_draw_elements_base_vertex");
     2070            check_gl_extension(gl_info, "GL_ARB_provoking_vertex");
     2071            check_gl_extension(gl_info, "GL_ARB_sync");
     2072            check_gl_extension(gl_info, "GL_ARB_texture_multisample");
     2073        }
     2074        if (fGLVersion >= 3.3)
     2075        {
     2076            check_gl_extension(gl_info, "GL_ARB_blend_func_extended");
     2077            check_gl_extension(gl_info, "GL_ARB_sampler_objects");
     2078            check_gl_extension(gl_info, "GL_ARB_explicit_attrib_location");
     2079            check_gl_extension(gl_info, "GL_ARB_occlusion_query2");
     2080            check_gl_extension(gl_info, "GL_ARB_shader_bit_encoding");
     2081            check_gl_extension(gl_info, "GL_ARB_texture_rgb10_a2ui");
     2082            check_gl_extension(gl_info, "GL_ARB_texture_swizzle");
     2083            check_gl_extension(gl_info, "GL_ARB_timer_query");
     2084            check_gl_extension(gl_info, "GL_ARB_vertex_type_2_10_10_10_rev");
     2085        }
     2086        if (fGLVersion >=4.0)
     2087        {
     2088            check_gl_extension(gl_info, "GL_ARB_texture_query_lod");
     2089            check_gl_extension(gl_info, "GL_ARB_draw_indirect");
     2090            check_gl_extension(gl_info, "GL_ARB_gpu_shader5");
     2091            check_gl_extension(gl_info, "GL_ARB_gpu_shader_fp64");
     2092            check_gl_extension(gl_info, "GL_ARB_shader_subroutine");
     2093            check_gl_extension(gl_info, "GL_ARB_tessellation_shader");
     2094            check_gl_extension(gl_info, "GL_ARB_texture_buffer_object_rgb32");
     2095            check_gl_extension(gl_info, "GL_ARB_texture_cube_map_array");
     2096            check_gl_extension(gl_info, "GL_ARB_texture_gather");
     2097            check_gl_extension(gl_info, "GL_ARB_transform_feedback2");
     2098            check_gl_extension(gl_info, "GL_ARB_transform_feedback3");
     2099        }
     2100        if (fGLVersion >=4.1)
     2101        {
     2102            check_gl_extension(gl_info, "GL_ARB_ES2_compatibility");
     2103            check_gl_extension(gl_info, "GL_ARB_get_program_binary");
     2104            check_gl_extension(gl_info, "GL_ARB_separate_shader_objects");
     2105            check_gl_extension(gl_info, "GL_ARB_shader_precision");
     2106            check_gl_extension(gl_info, "GL_ARB_vertex_attrib_64bit");
     2107            check_gl_extension(gl_info, "GL_ARB_viewport_array");
     2108        }
     2109    }
     2110
     2111    LEAVE_GL();
     2112
     2113#else
    20172114    while (*GL_Extensions)
    20182115    {
     
    20412138        }
    20422139    }
     2140#endif
    20432141
    20442142#ifdef VBOX_WITH_VMSVGA
    20452143# ifdef RT_OS_WINDOWS
    2046 # define OGLGETPROCADDRESS       wglGetProcAddress
     2144#  define OGLGETPROCADDRESS      wglGetProcAddress
    20472145# elif RT_OS_DARWIN
    2048 extern void (*MyNSGLGetProcAddress(const char *name))(void);
    2049 # define OGLGETPROCADDRESS       MyNSGLGetProcAddress
     2146#  define OGLGETPROCADDRESS(x)   MyNSGLGetProcAddress(x)
    20502147# else
    20512148extern void (*glXGetProcAddress(const GLubyte *procname))( void );
    2052 # define OGLGETPROCADDRESS(x)    glXGetProcAddress((const GLubyte *)x)
     2149#  define OGLGETPROCADDRESS(x)   glXGetProcAddress((const GLubyte *)x)
    20532150# endif
    20542151#endif
     
    21742271        else
    21752272        {
    2176             gl_info->limits.fragment_samplers = max(gl_info->limits.fragment_samplers, gl_max);
     2273            gl_info->limits.fragment_samplers = max(gl_info->limits.fragment_samplers, (UINT)gl_max);
    21772274        }
    21782275        TRACE_(d3d_caps)("Max fragment samplers: %d.\n", gl_info->limits.fragment_samplers);
  • trunk/src/VBox/Devices/Graphics/shaderlib/shaderapi.c

    r53725 r53728  
     1/* $Id$ */
    12/** @file
    23 * shaderlib -- interface to WINE's Direct3D shader functions
     
    45
    56/*
    6  * Copyright (C) 2014 Oracle Corporation
     7 * Copyright (C) 2014-2015 Oracle Corporation
    78 *
    89 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    1920#include <iprt/assert.h>
    2021#include <iprt/log.h>
     22#define WINED3D_EXTERN
    2123#include "wined3d_private.h"
    2224
     
    2426
    2527#ifdef RT_OS_WINDOWS
    26 #define OGLGETPROCADDRESS       wglGetProcAddress
     28# define OGLGETPROCADDRESS      wglGetProcAddress
     29
    2730#elif RT_OS_DARWIN
    28 #include <mach-o/dyld.h>
     31# include <dlfcn.h>
     32# define OGLGETPROCADDRESS(x)   MyNSGLGetProcAddress((const char *)x)
    2933void *MyNSGLGetProcAddress(const char *name)
    3034{
    31     NSSymbol symbol = NULL;
    32     char *symbolName = malloc(strlen(name) + 2);
    33     strcpy(symbolName + 1, name);
    34     symbolName[0] = '_';
    35     if (NSIsSymbolNameDefined(symbolName))
    36         symbol = NSLookupAndBindSymbol(symbolName);
    37     free(symbolName);
    38     return symbol ? NSAddressOfSymbol(symbol) : NULL;
    39 }
    40 #define OGLGETPROCADDRESS(x)   MyNSGLGetProcAddress((const char *)x)
     35    /* Another copy in DevVGA-SVGA3d-ogl.cpp. */
     36    static void *s_image = NULL;
     37    if (s_image == NULL)
     38        s_image = dlopen("/System/Library/Frameworks/OpenGL.framework/Versions/Current/OpenGL", RTLD_LAZY);
     39    return s_image ? dlsym(s_image, name) : NULL;
     40}
     41
    4142#else
    4243extern void (*glXGetProcAddress(const GLubyte *procname))( void );
    43 #define OGLGETPROCADDRESS(x)    glXGetProcAddress((const GLubyte *)x)
     44# define OGLGETPROCADDRESS(x)   glXGetProcAddress((const GLubyte *)x)
     45
    4446#endif
    4547
     
    130132            glGetAttribLocationARB,                     ARB_SHADER_OBJECTS,             NULL) \
    131133
    132 extern BOOL IWineD3DImpl_FillGLCaps(struct wined3d_adapter *adapter);
    133 
    134134static struct wined3d_context *pCurrentContext = NULL;
    135135static struct wined3d_adapter adapter = {0};
  • trunk/src/VBox/Devices/Graphics/shaderlib/wined3d_gl.h

    r53272 r53728  
    10081008        GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer);
    10091009
    1010 void (WINE_GLAPI *glAccum)(GLenum op, GLfloat value) DECLSPEC_HIDDEN;
    1011 void (WINE_GLAPI *glAlphaFunc)(GLenum func, GLclampf ref) DECLSPEC_HIDDEN;
    1012 GLboolean (WINE_GLAPI *glAreTexturesResident)(GLsizei n, const GLuint *textures, GLboolean *residences) DECLSPEC_HIDDEN;
    1013 void (WINE_GLAPI *glArrayElement)(GLint i) DECLSPEC_HIDDEN;
    1014 void (WINE_GLAPI *glBegin)(GLenum mode) DECLSPEC_HIDDEN;
    1015 void (WINE_GLAPI *glBindTexture)(GLenum target, GLuint texture) DECLSPEC_HIDDEN;
    1016 void (WINE_GLAPI *glBitmap)(GLsizei width, GLsizei height, GLfloat xorig,
     1010#ifndef WINED3D_EXTERN
     1011# define WINED3D_EXTERN extern
     1012#endif
     1013
     1014WINED3D_EXTERN void (WINE_GLAPI *glAccum)(GLenum op, GLfloat value) DECLSPEC_HIDDEN;
     1015WINED3D_EXTERN void (WINE_GLAPI *glAlphaFunc)(GLenum func, GLclampf ref) DECLSPEC_HIDDEN;
     1016WINED3D_EXTERN GLboolean (WINE_GLAPI *glAreTexturesResident)(GLsizei n, const GLuint *textures, GLboolean *residences) DECLSPEC_HIDDEN;
     1017WINED3D_EXTERN void (WINE_GLAPI *glArrayElement)(GLint i) DECLSPEC_HIDDEN;
     1018WINED3D_EXTERN void (WINE_GLAPI *glBegin)(GLenum mode) DECLSPEC_HIDDEN;
     1019WINED3D_EXTERN void (WINE_GLAPI *glBindTexture)(GLenum target, GLuint texture) DECLSPEC_HIDDEN;
     1020WINED3D_EXTERN void (WINE_GLAPI *glBitmap)(GLsizei width, GLsizei height, GLfloat xorig,
    10171021        GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap) DECLSPEC_HIDDEN;
    1018 void (WINE_GLAPI *glBlendFunc)(GLenum sfactor, GLenum dfactor) DECLSPEC_HIDDEN;
    1019 void (WINE_GLAPI *glCallList)(GLuint list) DECLSPEC_HIDDEN;
    1020 void (WINE_GLAPI *glCallLists)(GLsizei n, GLenum type, const GLvoid *lists) DECLSPEC_HIDDEN;
    1021 void (WINE_GLAPI *glClear)(GLbitfield mask) DECLSPEC_HIDDEN;
    1022 void (WINE_GLAPI *glClearAccum)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) DECLSPEC_HIDDEN;
    1023 void (WINE_GLAPI *glClearColor)(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) DECLSPEC_HIDDEN;
    1024 void (WINE_GLAPI *glClearDepth)(GLclampd depth) DECLSPEC_HIDDEN;
    1025 void (WINE_GLAPI *glClearIndex)(GLfloat c) DECLSPEC_HIDDEN;
    1026 void (WINE_GLAPI *glClearStencil)(GLint s) DECLSPEC_HIDDEN;
    1027 void (WINE_GLAPI *glClipPlane)(GLenum plane, const GLdouble *equation) DECLSPEC_HIDDEN;
    1028 void (WINE_GLAPI *glColor3b)(GLbyte red, GLbyte green, GLbyte blue) DECLSPEC_HIDDEN;
    1029 void (WINE_GLAPI *glColor3bv)(const GLbyte *v) DECLSPEC_HIDDEN;
    1030 void (WINE_GLAPI *glColor3d)(GLdouble red, GLdouble green, GLdouble blue) DECLSPEC_HIDDEN;
    1031 void (WINE_GLAPI *glColor3dv)(const GLdouble *v) DECLSPEC_HIDDEN;
    1032 void (WINE_GLAPI *glColor3f)(GLfloat red, GLfloat green, GLfloat blue) DECLSPEC_HIDDEN;
    1033 void (WINE_GLAPI *glColor3fv)(const GLfloat *v) DECLSPEC_HIDDEN;
    1034 void (WINE_GLAPI *glColor3i)(GLint red, GLint green, GLint blue) DECLSPEC_HIDDEN;
    1035 void (WINE_GLAPI *glColor3iv)(const GLint *v) DECLSPEC_HIDDEN;
    1036 void (WINE_GLAPI *glColor3s)(GLshort red, GLshort green, GLshort blue) DECLSPEC_HIDDEN;
    1037 void (WINE_GLAPI *glColor3sv)(const GLshort *v) DECLSPEC_HIDDEN;
    1038 void (WINE_GLAPI *glColor3ub)(GLubyte red, GLubyte green, GLubyte blue) DECLSPEC_HIDDEN;
    1039 void (WINE_GLAPI *glColor3ubv)(const GLubyte *v) DECLSPEC_HIDDEN;
    1040 void (WINE_GLAPI *glColor3ui)(GLuint red, GLuint green, GLuint blue) DECLSPEC_HIDDEN;
    1041 void (WINE_GLAPI *glColor3uiv)(const GLuint *v) DECLSPEC_HIDDEN;
    1042 void (WINE_GLAPI *glColor3us)(GLushort red, GLushort green, GLushort blue) DECLSPEC_HIDDEN;
    1043 void (WINE_GLAPI *glColor3usv)(const GLushort *v) DECLSPEC_HIDDEN;
    1044 void (WINE_GLAPI *glColor4b)(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha) DECLSPEC_HIDDEN;
    1045 void (WINE_GLAPI *glColor4bv)(const GLbyte *v) DECLSPEC_HIDDEN;
    1046 void (WINE_GLAPI *glColor4d)(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha) DECLSPEC_HIDDEN;
    1047 void (WINE_GLAPI *glColor4dv)(const GLdouble *v) DECLSPEC_HIDDEN;
    1048 void (WINE_GLAPI *glColor4f)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) DECLSPEC_HIDDEN;
    1049 void (WINE_GLAPI *glColor4fv)(const GLfloat *v) DECLSPEC_HIDDEN;
    1050 void (WINE_GLAPI *glColor4i)(GLint red, GLint green, GLint blue, GLint alpha) DECLSPEC_HIDDEN;
    1051 void (WINE_GLAPI *glColor4iv)(const GLint *v) DECLSPEC_HIDDEN;
    1052 void (WINE_GLAPI *glColor4s)(GLshort red, GLshort green, GLshort blue, GLshort alpha) DECLSPEC_HIDDEN;
    1053 void (WINE_GLAPI *glColor4sv)(const GLshort *v) DECLSPEC_HIDDEN;
    1054 void (WINE_GLAPI *glColor4ub)(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha) DECLSPEC_HIDDEN;
    1055 void (WINE_GLAPI *glColor4ubv)(const GLubyte *v) DECLSPEC_HIDDEN;
    1056 void (WINE_GLAPI *glColor4ui)(GLuint red, GLuint green, GLuint blue, GLuint alpha) DECLSPEC_HIDDEN;
    1057 void (WINE_GLAPI *glColor4uiv)(const GLuint *v) DECLSPEC_HIDDEN;
    1058 void (WINE_GLAPI *glColor4us)(GLushort red, GLushort green, GLushort blue, GLushort alpha) DECLSPEC_HIDDEN;
    1059 void (WINE_GLAPI *glColor4usv)(const GLushort *v) DECLSPEC_HIDDEN;
    1060 void (WINE_GLAPI *glColorMask)(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) DECLSPEC_HIDDEN;
    1061 void (WINE_GLAPI *glColorMaterial)(GLenum face, GLenum mode) DECLSPEC_HIDDEN;
    1062 void (WINE_GLAPI *glColorPointer)(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer) DECLSPEC_HIDDEN;
    1063 void (WINE_GLAPI *glCopyPixels)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type) DECLSPEC_HIDDEN;
    1064 void (WINE_GLAPI *glCopyTexImage1D)(GLenum target, GLint level,
    1065         GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border) DECLSPEC_HIDDEN;
    1066 void (WINE_GLAPI *glCopyTexImage2D)(GLenum target, GLint level,
    1067         GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) DECLSPEC_HIDDEN;
    1068 void (WINE_GLAPI *glCopyTexSubImage1D)(GLenum target, GLint level,
    1069         GLint xoffset, GLint x, GLint y, GLsizei width) DECLSPEC_HIDDEN;
    1070 void (WINE_GLAPI *glCopyTexSubImage2D)(GLenum target, GLint level,
    1071         GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) DECLSPEC_HIDDEN;
    1072 void (WINE_GLAPI *glCullFace)(GLenum mode) DECLSPEC_HIDDEN;
    1073 void (WINE_GLAPI *glDeleteLists)(GLuint list, GLsizei range) DECLSPEC_HIDDEN;
    1074 void (WINE_GLAPI *glDeleteTextures)(GLsizei n, const GLuint *textures) DECLSPEC_HIDDEN;
    1075 void (WINE_GLAPI *glDepthFunc)(GLenum func) DECLSPEC_HIDDEN;
    1076 void (WINE_GLAPI *glDepthMask)(GLboolean flag) DECLSPEC_HIDDEN;
    1077 void (WINE_GLAPI *glDepthRange)(GLclampd nearParam, GLclampd farParam) DECLSPEC_HIDDEN;
    1078 void (WINE_GLAPI *glDisable)(GLenum cap) DECLSPEC_HIDDEN;
    1079 void (WINE_GLAPI *glDisableWINE)(GLenum cap) DECLSPEC_HIDDEN;
    1080 void (WINE_GLAPI *glDisableClientState)(GLenum array) DECLSPEC_HIDDEN;
    1081 void (WINE_GLAPI *glDrawArrays)(GLenum mode, GLint first, GLsizei count) DECLSPEC_HIDDEN;
    1082 void (WINE_GLAPI *glDrawBuffer)(GLenum mode) DECLSPEC_HIDDEN;
    1083 void (WINE_GLAPI *glDrawElements)(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices) DECLSPEC_HIDDEN;
    1084 void (WINE_GLAPI *glDrawPixels)(GLsizei width, GLsizei height, GLenum format,
    1085         GLenum type, const GLvoid *pixels) DECLSPEC_HIDDEN;
    1086 void (WINE_GLAPI *glEdgeFlag)(GLboolean flag) DECLSPEC_HIDDEN;
    1087 void (WINE_GLAPI *glEdgeFlagPointer)(GLsizei stride, const GLvoid *pointer) DECLSPEC_HIDDEN;
    1088 void (WINE_GLAPI *glEdgeFlagv)(const GLboolean *flag) DECLSPEC_HIDDEN;
    1089 void (WINE_GLAPI *glEnable)(GLenum cap) DECLSPEC_HIDDEN;
    1090 void (WINE_GLAPI *glEnableWINE)(GLenum cap) DECLSPEC_HIDDEN;
    1091 void (WINE_GLAPI *glEnableClientState)(GLenum array) DECLSPEC_HIDDEN;
    1092 void (WINE_GLAPI *glEnd)(void) DECLSPEC_HIDDEN;
    1093 void (WINE_GLAPI *glEndList)(void) DECLSPEC_HIDDEN;
    1094 void (WINE_GLAPI *glEvalCoord1d)(GLdouble u) DECLSPEC_HIDDEN;
    1095 void (WINE_GLAPI *glEvalCoord1dv)(const GLdouble *u) DECLSPEC_HIDDEN;
    1096 void (WINE_GLAPI *glEvalCoord1f)(GLfloat u) DECLSPEC_HIDDEN;
    1097 void (WINE_GLAPI *glEvalCoord1fv)(const GLfloat *u) DECLSPEC_HIDDEN;
    1098 void (WINE_GLAPI *glEvalCoord2d)(GLdouble u, GLdouble v) DECLSPEC_HIDDEN;
    1099 void (WINE_GLAPI *glEvalCoord2dv)(const GLdouble *u) DECLSPEC_HIDDEN;
    1100 void (WINE_GLAPI *glEvalCoord2f)(GLfloat u, GLfloat v) DECLSPEC_HIDDEN;
    1101 void (WINE_GLAPI *glEvalCoord2fv)(const GLfloat *u) DECLSPEC_HIDDEN;
    1102 void (WINE_GLAPI *glEvalMesh1)(GLenum mode, GLint i1, GLint i2) DECLSPEC_HIDDEN;
    1103 void (WINE_GLAPI *glEvalMesh2)(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2) DECLSPEC_HIDDEN;
    1104 void (WINE_GLAPI *glEvalPoint1)(GLint i) DECLSPEC_HIDDEN;
    1105 void (WINE_GLAPI *glEvalPoint2)(GLint i, GLint j) DECLSPEC_HIDDEN;
    1106 void (WINE_GLAPI *glFeedbackBuffer)(GLsizei size, GLenum type, GLfloat *buffer) DECLSPEC_HIDDEN;
    1107 void (WINE_GLAPI *glFogf)(GLenum pname, GLfloat param) DECLSPEC_HIDDEN;
    1108 void (WINE_GLAPI *glFogfv)(GLenum pname, const GLfloat *params) DECLSPEC_HIDDEN;
    1109 void (WINE_GLAPI *glFogi)(GLenum pname, GLint param) DECLSPEC_HIDDEN;
    1110 void (WINE_GLAPI *glFogiv)(GLenum pname, const GLint *params) DECLSPEC_HIDDEN;
    1111 void (WINE_GLAPI *glFrontFace)(GLenum mode) DECLSPEC_HIDDEN;
    1112 void (WINE_GLAPI *glFrustum)(GLdouble left, GLdouble right, GLdouble bottom,
    1113         GLdouble top, GLdouble zNear, GLdouble zFar) DECLSPEC_HIDDEN;
    1114 GLuint (WINE_GLAPI *glGenLists)(GLsizei range) DECLSPEC_HIDDEN;
    1115 void (WINE_GLAPI *glGenTextures)(GLsizei n, GLuint *textures) DECLSPEC_HIDDEN;
    1116 void (WINE_GLAPI *glGetBooleanv)(GLenum pname, GLboolean *params) DECLSPEC_HIDDEN;
    1117 void (WINE_GLAPI *glGetClipPlane)(GLenum plane, GLdouble *equation) DECLSPEC_HIDDEN;
    1118 void (WINE_GLAPI *glGetDoublev)(GLenum pname, GLdouble *params) DECLSPEC_HIDDEN;
    1119 GLenum (WINE_GLAPI *glGetError)(void) DECLSPEC_HIDDEN;
    1120 void (WINE_GLAPI *glGetFloatv)(GLenum pname, GLfloat *params) DECLSPEC_HIDDEN;
    1121 void (WINE_GLAPI *glGetIntegerv)(GLenum pname, GLint *params) DECLSPEC_HIDDEN;
    1122 void (WINE_GLAPI *glGetLightfv)(GLenum light, GLenum pname, GLfloat *params) DECLSPEC_HIDDEN;
    1123 void (WINE_GLAPI *glGetLightiv)(GLenum light, GLenum pname, GLint *params) DECLSPEC_HIDDEN;
    1124 void (WINE_GLAPI *glGetMapdv)(GLenum target, GLenum query, GLdouble *v) DECLSPEC_HIDDEN;
    1125 void (WINE_GLAPI *glGetMapfv)(GLenum target, GLenum query, GLfloat *v) DECLSPEC_HIDDEN;
    1126 void (WINE_GLAPI *glGetMapiv)(GLenum target, GLenum query, GLint *v) DECLSPEC_HIDDEN;
    1127 void (WINE_GLAPI *glGetMaterialfv)(GLenum face, GLenum pname, GLfloat *params) DECLSPEC_HIDDEN;
    1128 void (WINE_GLAPI *glGetMaterialiv)(GLenum face, GLenum pname, GLint *params) DECLSPEC_HIDDEN;
    1129 void (WINE_GLAPI *glGetPixelMapfv)(GLenum map, GLfloat *values) DECLSPEC_HIDDEN;
    1130 void (WINE_GLAPI *glGetPixelMapuiv)(GLenum map, GLuint *values) DECLSPEC_HIDDEN;
    1131 void (WINE_GLAPI *glGetPixelMapusv)(GLenum map, GLushort *values) DECLSPEC_HIDDEN;
    1132 void (WINE_GLAPI *glGetPointerv)(GLenum pname, GLvoid **params) DECLSPEC_HIDDEN;
    1133 void (WINE_GLAPI *glGetPolygonStipple)(GLubyte *mask) DECLSPEC_HIDDEN;
    1134 const GLubyte * (WINE_GLAPI *glGetString)(GLenum name) DECLSPEC_HIDDEN;
    1135 void (WINE_GLAPI *glGetTexEnvfv)(GLenum target, GLenum pname, GLfloat *params) DECLSPEC_HIDDEN;
    1136 void (WINE_GLAPI *glGetTexEnviv)(GLenum target, GLenum pname, GLint *params) DECLSPEC_HIDDEN;
    1137 void (WINE_GLAPI *glGetTexGendv)(GLenum coord, GLenum pname, GLdouble *params) DECLSPEC_HIDDEN;
    1138 void (WINE_GLAPI *glGetTexGenfv)(GLenum coord, GLenum pname, GLfloat *params) DECLSPEC_HIDDEN;
    1139 void (WINE_GLAPI *glGetTexGeniv)(GLenum coord, GLenum pname, GLint *params) DECLSPEC_HIDDEN;
    1140 void (WINE_GLAPI *glGetTexImage)(GLenum target, GLint level, GLenum format,
    1141         GLenum type, GLvoid *pixels) DECLSPEC_HIDDEN;
    1142 void (WINE_GLAPI *glGetTexLevelParameterfv)(GLenum target, GLint level, GLenum pname, GLfloat *params) DECLSPEC_HIDDEN;
    1143 void (WINE_GLAPI *glGetTexLevelParameteriv)(GLenum target, GLint level, GLenum pname, GLint *params) DECLSPEC_HIDDEN;
    1144 void (WINE_GLAPI *glGetTexParameterfv)(GLenum target, GLenum pname, GLfloat *params) DECLSPEC_HIDDEN;
    1145 void (WINE_GLAPI *glGetTexParameteriv)(GLenum target, GLenum pname, GLint *params) DECLSPEC_HIDDEN;
    1146 void (WINE_GLAPI *glHint)(GLenum target, GLenum mode) DECLSPEC_HIDDEN;
    1147 void (WINE_GLAPI *glIndexMask)(GLuint mask) DECLSPEC_HIDDEN;
    1148 void (WINE_GLAPI *glIndexPointer)(GLenum type, GLsizei stride, const GLvoid *pointer) DECLSPEC_HIDDEN;
    1149 void (WINE_GLAPI *glIndexd)(GLdouble c) DECLSPEC_HIDDEN;
    1150 void (WINE_GLAPI *glIndexdv)(const GLdouble *c) DECLSPEC_HIDDEN;
    1151 void (WINE_GLAPI *glIndexf)(GLfloat c) DECLSPEC_HIDDEN;
    1152 void (WINE_GLAPI *glIndexfv)(const GLfloat *c) DECLSPEC_HIDDEN;
    1153 void (WINE_GLAPI *glIndexi)(GLint c) DECLSPEC_HIDDEN;
    1154 void (WINE_GLAPI *glIndexiv)(const GLint *c) DECLSPEC_HIDDEN;
    1155 void (WINE_GLAPI *glIndexs)(GLshort c) DECLSPEC_HIDDEN;
    1156 void (WINE_GLAPI *glIndexsv)(const GLshort *c) DECLSPEC_HIDDEN;
    1157 void (WINE_GLAPI *glIndexub)(GLubyte c) DECLSPEC_HIDDEN;
    1158 void (WINE_GLAPI *glIndexubv)(const GLubyte *c) DECLSPEC_HIDDEN;
    1159 void (WINE_GLAPI *glInitNames)(void) DECLSPEC_HIDDEN;
    1160 void (WINE_GLAPI *glInterleavedArrays)(GLenum format, GLsizei stride, const GLvoid *pointer) DECLSPEC_HIDDEN;
    1161 GLboolean (WINE_GLAPI *glIsEnabled)(GLenum cap) DECLSPEC_HIDDEN;
    1162 GLboolean (WINE_GLAPI *glIsList)(GLuint list) DECLSPEC_HIDDEN;
    1163 GLboolean (WINE_GLAPI *glIsTexture)(GLuint texture) DECLSPEC_HIDDEN;
    1164 void (WINE_GLAPI *glLightModelf)(GLenum pname, GLfloat param) DECLSPEC_HIDDEN;
    1165 void (WINE_GLAPI *glLightModelfv)(GLenum pname, const GLfloat *params) DECLSPEC_HIDDEN;
    1166 void (WINE_GLAPI *glLightModeli)(GLenum pname, GLint param) DECLSPEC_HIDDEN;
    1167 void (WINE_GLAPI *glLightModeliv)(GLenum pname, const GLint *params) DECLSPEC_HIDDEN;
    1168 void (WINE_GLAPI *glLightf)(GLenum light, GLenum pname, GLfloat param) DECLSPEC_HIDDEN;
    1169 void (WINE_GLAPI *glLightfv)(GLenum light, GLenum pname, const GLfloat *params) DECLSPEC_HIDDEN;
    1170 void (WINE_GLAPI *glLighti)(GLenum light, GLenum pname, GLint param) DECLSPEC_HIDDEN;
    1171 void (WINE_GLAPI *glLightiv)(GLenum light, GLenum pname, const GLint *params) DECLSPEC_HIDDEN;
    1172 void (WINE_GLAPI *glLineStipple)(GLint factor, GLushort pattern) DECLSPEC_HIDDEN;
    1173 void (WINE_GLAPI *glLineWidth)(GLfloat width) DECLSPEC_HIDDEN;
    1174 void (WINE_GLAPI *glListBase)(GLuint base) DECLSPEC_HIDDEN;
    1175 void (WINE_GLAPI *glLoadIdentity)(void) DECLSPEC_HIDDEN;
    1176 void (WINE_GLAPI *glLoadMatrixd)(const GLdouble *m) DECLSPEC_HIDDEN;
    1177 void (WINE_GLAPI *glLoadMatrixf)(const GLfloat *m) DECLSPEC_HIDDEN;
    1178 void (WINE_GLAPI *glLoadName)(GLuint name) DECLSPEC_HIDDEN;
    1179 void (WINE_GLAPI *glLogicOp)(GLenum opcode) DECLSPEC_HIDDEN;
    1180 void (WINE_GLAPI *glMap1d)(GLenum target, GLdouble u1, GLdouble u2,
    1181         GLint stride, GLint order, const GLdouble *points) DECLSPEC_HIDDEN;
    1182 void (WINE_GLAPI *glMap1f)(GLenum target, GLfloat u1, GLfloat u2, GLint stride,
    1183         GLint order, const GLfloat *points) DECLSPEC_HIDDEN;
    1184 void (WINE_GLAPI *glMap2d)(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder,
    1185         GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points) DECLSPEC_HIDDEN;
    1186 void (WINE_GLAPI *glMap2f)(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder,
    1187         GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points) DECLSPEC_HIDDEN;
    1188 void (WINE_GLAPI *glMapGrid1d)(GLint un, GLdouble u1, GLdouble u2) DECLSPEC_HIDDEN;
    1189 void (WINE_GLAPI *glMapGrid1f)(GLint un, GLfloat u1, GLfloat u2) DECLSPEC_HIDDEN;
    1190 void (WINE_GLAPI *glMapGrid2d)(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2) DECLSPEC_HIDDEN;
    1191 void (WINE_GLAPI *glMapGrid2f)(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2) DECLSPEC_HIDDEN;
    1192 void (WINE_GLAPI *glMaterialf)(GLenum face, GLenum pname, GLfloat param) DECLSPEC_HIDDEN;
    1193 void (WINE_GLAPI *glMaterialfv)(GLenum face, GLenum pname, const GLfloat *params) DECLSPEC_HIDDEN;
    1194 void (WINE_GLAPI *glMateriali)(GLenum face, GLenum pname, GLint param) DECLSPEC_HIDDEN;
    1195 void (WINE_GLAPI *glMaterialiv)(GLenum face, GLenum pname, const GLint *params) DECLSPEC_HIDDEN;
    1196 void (WINE_GLAPI *glMatrixMode)(GLenum mode) DECLSPEC_HIDDEN;
    1197 void (WINE_GLAPI *glMultMatrixd)(const GLdouble *m) DECLSPEC_HIDDEN;
    1198 void (WINE_GLAPI *glMultMatrixf)(const GLfloat *m) DECLSPEC_HIDDEN;
    1199 void (WINE_GLAPI *glNewList)(GLuint list, GLenum mode) DECLSPEC_HIDDEN;
    1200 void (WINE_GLAPI *glNormal3b)(GLbyte nx, GLbyte ny, GLbyte nz) DECLSPEC_HIDDEN;
    1201 void (WINE_GLAPI *glNormal3bv)(const GLbyte *v) DECLSPEC_HIDDEN;
    1202 void (WINE_GLAPI *glNormal3d)(GLdouble nx, GLdouble ny, GLdouble nz) DECLSPEC_HIDDEN;
    1203 void (WINE_GLAPI *glNormal3dv)(const GLdouble *v) DECLSPEC_HIDDEN;
    1204 void (WINE_GLAPI *glNormal3f)(GLfloat nx, GLfloat ny, GLfloat nz) DECLSPEC_HIDDEN;
    1205 void (WINE_GLAPI *glNormal3fv)(const GLfloat *v) DECLSPEC_HIDDEN;
    1206 void (WINE_GLAPI *glNormal3i)(GLint nx, GLint ny, GLint nz) DECLSPEC_HIDDEN;
    1207 void (WINE_GLAPI *glNormal3iv)(const GLint *v) DECLSPEC_HIDDEN;
    1208 void (WINE_GLAPI *glNormal3s)(GLshort nx, GLshort ny, GLshort nz) DECLSPEC_HIDDEN;
    1209 void (WINE_GLAPI *glNormal3sv)(const GLshort *v) DECLSPEC_HIDDEN;
    1210 void (WINE_GLAPI *glNormalPointer)(GLenum type, GLsizei stride, const GLvoid *pointer) DECLSPEC_HIDDEN;
    1211 void (WINE_GLAPI *glOrtho)(GLdouble left, GLdouble right, GLdouble bottom,
    1212         GLdouble top, GLdouble zNear, GLdouble zFar) DECLSPEC_HIDDEN;
    1213 void (WINE_GLAPI *glPassThrough)(GLfloat token) DECLSPEC_HIDDEN;
    1214 void (WINE_GLAPI *glPixelMapfv)(GLenum map, GLint mapsize, const GLfloat *values) DECLSPEC_HIDDEN;
    1215 void (WINE_GLAPI *glPixelMapuiv)(GLenum map, GLint mapsize, const GLuint *values) DECLSPEC_HIDDEN;
    1216 void (WINE_GLAPI *glPixelMapusv)(GLenum map, GLint mapsize, const GLushort *values) DECLSPEC_HIDDEN;
    1217 void (WINE_GLAPI *glPixelStoref)(GLenum pname, GLfloat param) DECLSPEC_HIDDEN;
    1218 void (WINE_GLAPI *glPixelStorei)(GLenum pname, GLint param) DECLSPEC_HIDDEN;
    1219 void (WINE_GLAPI *glPixelTransferf)(GLenum pname, GLfloat param) DECLSPEC_HIDDEN;
    1220 void (WINE_GLAPI *glPixelTransferi)(GLenum pname, GLint param) DECLSPEC_HIDDEN;
    1221 void (WINE_GLAPI *glPixelZoom)(GLfloat xfactor, GLfloat yfactor) DECLSPEC_HIDDEN;
    1222 void (WINE_GLAPI *glPointSize)(GLfloat size) DECLSPEC_HIDDEN;
    1223 void (WINE_GLAPI *glPolygonMode)(GLenum face, GLenum mode) DECLSPEC_HIDDEN;
    1224 void (WINE_GLAPI *glPolygonOffset)(GLfloat factor, GLfloat units) DECLSPEC_HIDDEN;
    1225 void (WINE_GLAPI *glPolygonStipple)(const GLubyte *mask) DECLSPEC_HIDDEN;
    1226 void (WINE_GLAPI *glPopAttrib)(void) DECLSPEC_HIDDEN;
    1227 void (WINE_GLAPI *glPopClientAttrib)(void) DECLSPEC_HIDDEN;
    1228 void (WINE_GLAPI *glPopMatrix)(void) DECLSPEC_HIDDEN;
    1229 void (WINE_GLAPI *glPopName)(void) DECLSPEC_HIDDEN;
    1230 void (WINE_GLAPI *glPrioritizeTextures)(GLsizei n, const GLuint *textures, const GLclampf *priorities) DECLSPEC_HIDDEN;
    1231 void (WINE_GLAPI *glPushAttrib)(GLbitfield mask) DECLSPEC_HIDDEN;
    1232 void (WINE_GLAPI *glPushClientAttrib)(GLbitfield mask) DECLSPEC_HIDDEN;
    1233 void (WINE_GLAPI *glPushMatrix)(void) DECLSPEC_HIDDEN;
    1234 void (WINE_GLAPI *glPushName)(GLuint name) DECLSPEC_HIDDEN;
    1235 void (WINE_GLAPI *glRasterPos2d)(GLdouble x, GLdouble y) DECLSPEC_HIDDEN;
    1236 void (WINE_GLAPI *glRasterPos2dv)(const GLdouble *v) DECLSPEC_HIDDEN;
    1237 void (WINE_GLAPI *glRasterPos2f)(GLfloat x, GLfloat y) DECLSPEC_HIDDEN;
    1238 void (WINE_GLAPI *glRasterPos2fv)(const GLfloat *v) DECLSPEC_HIDDEN;
    1239 void (WINE_GLAPI *glRasterPos2i)(GLint x, GLint y) DECLSPEC_HIDDEN;
    1240 void (WINE_GLAPI *glRasterPos2iv)(const GLint *v) DECLSPEC_HIDDEN;
    1241 void (WINE_GLAPI *glRasterPos2s)(GLshort x, GLshort y) DECLSPEC_HIDDEN;
    1242 void (WINE_GLAPI *glRasterPos2sv)(const GLshort *v) DECLSPEC_HIDDEN;
    1243 void (WINE_GLAPI *glRasterPos3d)(GLdouble x, GLdouble y, GLdouble z) DECLSPEC_HIDDEN;
    1244 void (WINE_GLAPI *glRasterPos3dv)(const GLdouble *v) DECLSPEC_HIDDEN;
    1245 void (WINE_GLAPI *glRasterPos3f)(GLfloat x, GLfloat y, GLfloat z) DECLSPEC_HIDDEN;
    1246 void (WINE_GLAPI *glRasterPos3fv)(const GLfloat *v) DECLSPEC_HIDDEN;
    1247 void (WINE_GLAPI *glRasterPos3i)(GLint x, GLint y, GLint z) DECLSPEC_HIDDEN;
    1248 void (WINE_GLAPI *glRasterPos3iv)(const GLint *v) DECLSPEC_HIDDEN;
    1249 void (WINE_GLAPI *glRasterPos3s)(GLshort x, GLshort y, GLshort z) DECLSPEC_HIDDEN;
    1250 void (WINE_GLAPI *glRasterPos3sv)(const GLshort *v) DECLSPEC_HIDDEN;
    1251 void (WINE_GLAPI *glRasterPos4d)(GLdouble x, GLdouble y, GLdouble z, GLdouble w) DECLSPEC_HIDDEN;
    1252 void (WINE_GLAPI *glRasterPos4dv)(const GLdouble *v) DECLSPEC_HIDDEN;
    1253 void (WINE_GLAPI *glRasterPos4f)(GLfloat x, GLfloat y, GLfloat z, GLfloat w) DECLSPEC_HIDDEN;
    1254 void (WINE_GLAPI *glRasterPos4fv)(const GLfloat *v) DECLSPEC_HIDDEN;
    1255 void (WINE_GLAPI *glRasterPos4i)(GLint x, GLint y, GLint z, GLint w) DECLSPEC_HIDDEN;
    1256 void (WINE_GLAPI *glRasterPos4iv)(const GLint *v) DECLSPEC_HIDDEN;
    1257 void (WINE_GLAPI *glRasterPos4s)(GLshort x, GLshort y, GLshort z, GLshort w) DECLSPEC_HIDDEN;
    1258 void (WINE_GLAPI *glRasterPos4sv)(const GLshort *v) DECLSPEC_HIDDEN;
    1259 void (WINE_GLAPI *glReadBuffer)(GLenum mode) DECLSPEC_HIDDEN;
    1260 void (WINE_GLAPI *glReadPixels)(GLint x, GLint y, GLsizei width, GLsizei height,
    1261         GLenum format, GLenum type, GLvoid *pixels) DECLSPEC_HIDDEN;
    1262 void (WINE_GLAPI *glRectd)(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2) DECLSPEC_HIDDEN;
    1263 void (WINE_GLAPI *glRectdv)(const GLdouble *v1, const GLdouble *v2) DECLSPEC_HIDDEN;
    1264 void (WINE_GLAPI *glRectf)(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2) DECLSPEC_HIDDEN;
    1265 void (WINE_GLAPI *glRectfv)(const GLfloat *v1, const GLfloat *v2) DECLSPEC_HIDDEN;
    1266 void (WINE_GLAPI *glRecti)(GLint x1, GLint y1, GLint x2, GLint y2) DECLSPEC_HIDDEN;
    1267 void (WINE_GLAPI *glRectiv)(const GLint *v1, const GLint *v2) DECLSPEC_HIDDEN;
    1268 void (WINE_GLAPI *glRects)(GLshort x1, GLshort y1, GLshort x2, GLshort y2) DECLSPEC_HIDDEN;
    1269 void (WINE_GLAPI *glRectsv)(const GLshort *v1, const GLshort *v2) DECLSPEC_HIDDEN;
    1270 GLint (WINE_GLAPI *glRenderMode)(GLenum mode) DECLSPEC_HIDDEN;
    1271 void (WINE_GLAPI *glRotated)(GLdouble angle, GLdouble x, GLdouble y, GLdouble z) DECLSPEC_HIDDEN;
    1272 void (WINE_GLAPI *glRotatef)(GLfloat angle, GLfloat x, GLfloat y, GLfloat z) DECLSPEC_HIDDEN;
    1273 void (WINE_GLAPI *glScaled)(GLdouble x, GLdouble y, GLdouble z) DECLSPEC_HIDDEN;
    1274 void (WINE_GLAPI *glScalef)(GLfloat x, GLfloat y, GLfloat z) DECLSPEC_HIDDEN;
    1275 void (WINE_GLAPI *glScissor)(GLint x, GLint y, GLsizei width, GLsizei height) DECLSPEC_HIDDEN;
    1276 void (WINE_GLAPI *glSelectBuffer)(GLsizei size, GLuint *buffer) DECLSPEC_HIDDEN;
    1277 void (WINE_GLAPI *glShadeModel)(GLenum mode) DECLSPEC_HIDDEN;
    1278 void (WINE_GLAPI *glStencilFunc)(GLenum func, GLint ref, GLuint mask) DECLSPEC_HIDDEN;
    1279 void (WINE_GLAPI *glStencilMask)(GLuint mask) DECLSPEC_HIDDEN;
    1280 void (WINE_GLAPI *glStencilOp)(GLenum fail, GLenum zfail, GLenum zpass) DECLSPEC_HIDDEN;
    1281 void (WINE_GLAPI *glTexCoord1d)(GLdouble s) DECLSPEC_HIDDEN;
    1282 void (WINE_GLAPI *glTexCoord1dv)(const GLdouble *v) DECLSPEC_HIDDEN;
    1283 void (WINE_GLAPI *glTexCoord1f)(GLfloat s) DECLSPEC_HIDDEN;
    1284 void (WINE_GLAPI *glTexCoord1fv)(const GLfloat *v) DECLSPEC_HIDDEN;
    1285 void (WINE_GLAPI *glTexCoord1i)(GLint s) DECLSPEC_HIDDEN;
    1286 void (WINE_GLAPI *glTexCoord1iv)(const GLint *v) DECLSPEC_HIDDEN;
    1287 void (WINE_GLAPI *glTexCoord1s)(GLshort s) DECLSPEC_HIDDEN;
    1288 void (WINE_GLAPI *glTexCoord1sv)(const GLshort *v) DECLSPEC_HIDDEN;
    1289 void (WINE_GLAPI *glTexCoord2d)(GLdouble s, GLdouble t) DECLSPEC_HIDDEN;
    1290 void (WINE_GLAPI *glTexCoord2dv)(const GLdouble *v) DECLSPEC_HIDDEN;
    1291 void (WINE_GLAPI *glTexCoord2f)(GLfloat s, GLfloat t) DECLSPEC_HIDDEN;
    1292 void (WINE_GLAPI *glTexCoord2fv)(const GLfloat *v) DECLSPEC_HIDDEN;
    1293 void (WINE_GLAPI *glTexCoord2i)(GLint s, GLint t) DECLSPEC_HIDDEN;
    1294 void (WINE_GLAPI *glTexCoord2iv)(const GLint *v) DECLSPEC_HIDDEN;
    1295 void (WINE_GLAPI *glTexCoord2s)(GLshort s, GLshort t) DECLSPEC_HIDDEN;
    1296 void (WINE_GLAPI *glTexCoord2sv)(const GLshort *v) DECLSPEC_HIDDEN;
    1297 void (WINE_GLAPI *glTexCoord3d)(GLdouble s, GLdouble t, GLdouble r) DECLSPEC_HIDDEN;
    1298 void (WINE_GLAPI *glTexCoord3dv)(const GLdouble *v) DECLSPEC_HIDDEN;
    1299 void (WINE_GLAPI *glTexCoord3f)(GLfloat s, GLfloat t, GLfloat r) DECLSPEC_HIDDEN;
    1300 void (WINE_GLAPI *glTexCoord3fv)(const GLfloat *v) DECLSPEC_HIDDEN;
    1301 void (WINE_GLAPI *glTexCoord3i)(GLint s, GLint t, GLint r) DECLSPEC_HIDDEN;
    1302 void (WINE_GLAPI *glTexCoord3iv)(const GLint *v) DECLSPEC_HIDDEN;
    1303 void (WINE_GLAPI *glTexCoord3s)(GLshort s, GLshort t, GLshort r) DECLSPEC_HIDDEN;
    1304 void (WINE_GLAPI *glTexCoord3sv)(const GLshort *v) DECLSPEC_HIDDEN;
    1305 void (WINE_GLAPI *glTexCoord4d)(GLdouble s, GLdouble t, GLdouble r, GLdouble q) DECLSPEC_HIDDEN;
    1306 void (WINE_GLAPI *glTexCoord4dv)(const GLdouble *v) DECLSPEC_HIDDEN;
    1307 void (WINE_GLAPI *glTexCoord4f)(GLfloat s, GLfloat t, GLfloat r, GLfloat q) DECLSPEC_HIDDEN;
    1308 void (WINE_GLAPI *glTexCoord4fv)(const GLfloat *v) DECLSPEC_HIDDEN;
    1309 void (WINE_GLAPI *glTexCoord4i)(GLint s, GLint t, GLint r, GLint q) DECLSPEC_HIDDEN;
    1310 void (WINE_GLAPI *glTexCoord4iv)(const GLint *v) DECLSPEC_HIDDEN;
    1311 void (WINE_GLAPI *glTexCoord4s)(GLshort s, GLshort t, GLshort r, GLshort q) DECLSPEC_HIDDEN;
    1312 void (WINE_GLAPI *glTexCoord4sv)(const GLshort *v) DECLSPEC_HIDDEN;
    1313 void (WINE_GLAPI *glTexCoordPointer)(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer) DECLSPEC_HIDDEN;
    1314 void (WINE_GLAPI *glTexEnvf)(GLenum target, GLenum pname, GLfloat param) DECLSPEC_HIDDEN;
    1315 void (WINE_GLAPI *glTexEnvfv)(GLenum target, GLenum pname, const GLfloat *params) DECLSPEC_HIDDEN;
    1316 void (WINE_GLAPI *glTexEnvi)(GLenum target, GLenum pname, GLint param) DECLSPEC_HIDDEN;
    1317 void (WINE_GLAPI *glTexEnviv)(GLenum target, GLenum pname, const GLint *params) DECLSPEC_HIDDEN;
    1318 void (WINE_GLAPI *glTexGend)(GLenum coord, GLenum pname, GLdouble param) DECLSPEC_HIDDEN;
    1319 void (WINE_GLAPI *glTexGendv)(GLenum coord, GLenum pname, const GLdouble *params) DECLSPEC_HIDDEN;
    1320 void (WINE_GLAPI *glTexGenf)(GLenum coord, GLenum pname, GLfloat param) DECLSPEC_HIDDEN;
    1321 void (WINE_GLAPI *glTexGenfv)(GLenum coord, GLenum pname, const GLfloat *params) DECLSPEC_HIDDEN;
    1322 void (WINE_GLAPI *glTexGeni)(GLenum coord, GLenum pname, GLint param) DECLSPEC_HIDDEN;
    1323 void (WINE_GLAPI *glTexGeniv)(GLenum coord, GLenum pname, const GLint *params) DECLSPEC_HIDDEN;
    1324 void (WINE_GLAPI *glTexImage1D)(GLenum target, GLint level, GLint internalformat, GLsizei width,
    1325         GLint border, GLenum format, GLenum type, const GLvoid *pixels) DECLSPEC_HIDDEN;
    1326 void (WINE_GLAPI *glTexImage2D)(GLenum target, GLint level, GLint internalformat, GLsizei width,
    1327         GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels) DECLSPEC_HIDDEN;
    1328 void (WINE_GLAPI *glTexParameterf)(GLenum target, GLenum pname, GLfloat param) DECLSPEC_HIDDEN;
    1329 void (WINE_GLAPI *glTexParameterfv)(GLenum target, GLenum pname, const GLfloat *params) DECLSPEC_HIDDEN;
    1330 void (WINE_GLAPI *glTexParameteri)(GLenum target, GLenum pname, GLint param) DECLSPEC_HIDDEN;
    1331 void (WINE_GLAPI *glTexParameteriv)(GLenum target, GLenum pname, const GLint *params) DECLSPEC_HIDDEN;
    1332 void (WINE_GLAPI *glTexSubImage1D)(GLenum target, GLint level, GLint xoffset,
    1333         GLsizei width, GLenum format, GLenum type, const GLvoid *pixels) DECLSPEC_HIDDEN;
    1334 void (WINE_GLAPI *glTexSubImage2D)(GLenum target, GLint level, GLint xoffset, GLint yoffset,
    1335         GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels) DECLSPEC_HIDDEN;
    1336 void (WINE_GLAPI *glTranslated)(GLdouble x, GLdouble y, GLdouble z) DECLSPEC_HIDDEN;
    1337 void (WINE_GLAPI *glTranslatef)(GLfloat x, GLfloat y, GLfloat z) DECLSPEC_HIDDEN;
    1338 void (WINE_GLAPI *glVertex2d)(GLdouble x, GLdouble y) DECLSPEC_HIDDEN;
    1339 void (WINE_GLAPI *glVertex2dv)(const GLdouble *v) DECLSPEC_HIDDEN;
    1340 void (WINE_GLAPI *glVertex2f)(GLfloat x, GLfloat y) DECLSPEC_HIDDEN;
    1341 void (WINE_GLAPI *glVertex2fv)(const GLfloat *v) DECLSPEC_HIDDEN;
    1342 void (WINE_GLAPI *glVertex2i)(GLint x, GLint y) DECLSPEC_HIDDEN;
    1343 void (WINE_GLAPI *glVertex2iv)(const GLint *v) DECLSPEC_HIDDEN;
    1344 void (WINE_GLAPI *glVertex2s)(GLshort x, GLshort y) DECLSPEC_HIDDEN;
    1345 void (WINE_GLAPI *glVertex2sv)(const GLshort *v) DECLSPEC_HIDDEN;
    1346 void (WINE_GLAPI *glVertex3d)(GLdouble x, GLdouble y, GLdouble z) DECLSPEC_HIDDEN;
    1347 void (WINE_GLAPI *glVertex3dv)(const GLdouble *v) DECLSPEC_HIDDEN;
    1348 void (WINE_GLAPI *glVertex3f)(GLfloat x, GLfloat y, GLfloat z) DECLSPEC_HIDDEN;
    1349 void (WINE_GLAPI *glVertex3fv)(const GLfloat *v) DECLSPEC_HIDDEN;
    1350 void (WINE_GLAPI *glVertex3i)(GLint x, GLint y, GLint z) DECLSPEC_HIDDEN;
    1351 void (WINE_GLAPI *glVertex3iv)(const GLint *v) DECLSPEC_HIDDEN;
    1352 void (WINE_GLAPI *glVertex3s)(GLshort x, GLshort y, GLshort z) DECLSPEC_HIDDEN;
    1353 void (WINE_GLAPI *glVertex3sv)(const GLshort *v) DECLSPEC_HIDDEN;
    1354 void (WINE_GLAPI *glVertex4d)(GLdouble x, GLdouble y, GLdouble z, GLdouble w) DECLSPEC_HIDDEN;
    1355 void (WINE_GLAPI *glVertex4dv)(const GLdouble *v) DECLSPEC_HIDDEN;
    1356 void (WINE_GLAPI *glVertex4f)(GLfloat x, GLfloat y, GLfloat z, GLfloat w) DECLSPEC_HIDDEN;
    1357 void (WINE_GLAPI *glVertex4fv)(const GLfloat *v) DECLSPEC_HIDDEN;
    1358 void (WINE_GLAPI *glVertex4i)(GLint x, GLint y, GLint z, GLint w) DECLSPEC_HIDDEN;
    1359 void (WINE_GLAPI *glVertex4iv)(const GLint *v) DECLSPEC_HIDDEN;
    1360 void (WINE_GLAPI *glVertex4s)(GLshort x, GLshort y, GLshort z, GLshort w) DECLSPEC_HIDDEN;
    1361 void (WINE_GLAPI *glVertex4sv)(const GLshort *v) DECLSPEC_HIDDEN;
    1362 void (WINE_GLAPI *glVertexPointer)(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer) DECLSPEC_HIDDEN;
    1363 void (WINE_GLAPI *glViewport)(GLint x, GLint y, GLsizei width, GLsizei height) DECLSPEC_HIDDEN;
    1364 void (WINE_GLAPI *glPointParameterfv)(GLenum pname, const GLfloat *params) DECLSPEC_HIDDEN;
     1022WINED3D_EXTERN void (WINE_GLAPI *glBlendFunc)(GLenum sfactor, GLenum dfactor) DECLSPEC_HIDDEN;
     1023WINED3D_EXTERN void (WINE_GLAPI *glCallList)(GLuint list) DECLSPEC_HIDDEN;
     1024WINED3D_EXTERN void (WINE_GLAPI *glCallLists)(GLsizei n, GLenum type, const GLvoid *lists) DECLSPEC_HIDDEN;
     1025WINED3D_EXTERN void (WINE_GLAPI *glClear)(GLbitfield mask) DECLSPEC_HIDDEN;
     1026WINED3D_EXTERN void (WINE_GLAPI *glClearAccum)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) DECLSPEC_HIDDEN;
     1027WINED3D_EXTERN void (WINE_GLAPI *glClearColor)(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) DECLSPEC_HIDDEN;
     1028WINED3D_EXTERN void (WINE_GLAPI *glClearDepth)(GLclampd depth) DECLSPEC_HIDDEN;
     1029WINED3D_EXTERN void (WINE_GLAPI *glClearIndex)(GLfloat c) DECLSPEC_HIDDEN;
     1030WINED3D_EXTERN void (WINE_GLAPI *glClearStencil)(GLint s) DECLSPEC_HIDDEN;
     1031WINED3D_EXTERN void (WINE_GLAPI *glClipPlane)(GLenum plane, const GLdouble *equation) DECLSPEC_HIDDEN;
     1032WINED3D_EXTERN void (WINE_GLAPI *glColor3b)(GLbyte red, GLbyte green, GLbyte blue) DECLSPEC_HIDDEN;
     1033WINED3D_EXTERN void (WINE_GLAPI *glColor3bv)(const GLbyte *v) DECLSPEC_HIDDEN;
     1034WINED3D_EXTERN void (WINE_GLAPI *glColor3d)(GLdouble red, GLdouble green, GLdouble blue) DECLSPEC_HIDDEN;
     1035WINED3D_EXTERN void (WINE_GLAPI *glColor3dv)(const GLdouble *v) DECLSPEC_HIDDEN;
     1036WINED3D_EXTERN void (WINE_GLAPI *glColor3f)(GLfloat red, GLfloat green, GLfloat blue) DECLSPEC_HIDDEN;
     1037WINED3D_EXTERN void (WINE_GLAPI *glColor3fv)(const GLfloat *v) DECLSPEC_HIDDEN;
     1038WINED3D_EXTERN void (WINE_GLAPI *glColor3i)(GLint red, GLint green, GLint blue) DECLSPEC_HIDDEN;
     1039WINED3D_EXTERN void (WINE_GLAPI *glColor3iv)(const GLint *v) DECLSPEC_HIDDEN;
     1040WINED3D_EXTERN void (WINE_GLAPI *glColor3s)(GLshort red, GLshort green, GLshort blue) DECLSPEC_HIDDEN;
     1041WINED3D_EXTERN void (WINE_GLAPI *glColor3sv)(const GLshort *v) DECLSPEC_HIDDEN;
     1042WINED3D_EXTERN void (WINE_GLAPI *glColor3ub)(GLubyte red, GLubyte green, GLubyte blue) DECLSPEC_HIDDEN;
     1043WINED3D_EXTERN void (WINE_GLAPI *glColor3ubv)(const GLubyte *v) DECLSPEC_HIDDEN;
     1044WINED3D_EXTERN void (WINE_GLAPI *glColor3ui)(GLuint red, GLuint green, GLuint blue) DECLSPEC_HIDDEN;
     1045WINED3D_EXTERN void (WINE_GLAPI *glColor3uiv)(const GLuint *v) DECLSPEC_HIDDEN;
     1046WINED3D_EXTERN void (WINE_GLAPI *glColor3us)(GLushort red, GLushort green, GLushort blue) DECLSPEC_HIDDEN;
     1047WINED3D_EXTERN void (WINE_GLAPI *glColor3usv)(const GLushort *v) DECLSPEC_HIDDEN;
     1048WINED3D_EXTERN void (WINE_GLAPI *glColor4b)(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha) DECLSPEC_HIDDEN;
     1049WINED3D_EXTERN void (WINE_GLAPI *glColor4bv)(const GLbyte *v) DECLSPEC_HIDDEN;
     1050WINED3D_EXTERN void (WINE_GLAPI *glColor4d)(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha) DECLSPEC_HIDDEN;
     1051WINED3D_EXTERN void (WINE_GLAPI *glColor4dv)(const GLdouble *v) DECLSPEC_HIDDEN;
     1052WINED3D_EXTERN void (WINE_GLAPI *glColor4f)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) DECLSPEC_HIDDEN;
     1053WINED3D_EXTERN void (WINE_GLAPI *glColor4fv)(const GLfloat *v) DECLSPEC_HIDDEN;
     1054WINED3D_EXTERN void (WINE_GLAPI *glColor4i)(GLint red, GLint green, GLint blue, GLint alpha) DECLSPEC_HIDDEN;
     1055WINED3D_EXTERN void (WINE_GLAPI *glColor4iv)(const GLint *v) DECLSPEC_HIDDEN;
     1056WINED3D_EXTERN void (WINE_GLAPI *glColor4s)(GLshort red, GLshort green, GLshort blue, GLshort alpha) DECLSPEC_HIDDEN;
     1057WINED3D_EXTERN void (WINE_GLAPI *glColor4sv)(const GLshort *v) DECLSPEC_HIDDEN;
     1058WINED3D_EXTERN void (WINE_GLAPI *glColor4ub)(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha) DECLSPEC_HIDDEN;
     1059WINED3D_EXTERN void (WINE_GLAPI *glColor4ubv)(const GLubyte *v) DECLSPEC_HIDDEN;
     1060WINED3D_EXTERN void (WINE_GLAPI *glColor4ui)(GLuint red, GLuint green, GLuint blue, GLuint alpha) DECLSPEC_HIDDEN;
     1061WINED3D_EXTERN void (WINE_GLAPI *glColor4uiv)(const GLuint *v) DECLSPEC_HIDDEN;
     1062WINED3D_EXTERN void (WINE_GLAPI *glColor4us)(GLushort red, GLushort green, GLushort blue, GLushort alpha) DECLSPEC_HIDDEN;
     1063WINED3D_EXTERN void (WINE_GLAPI *glColor4usv)(const GLushort *v) DECLSPEC_HIDDEN;
     1064WINED3D_EXTERN void (WINE_GLAPI *glColorMask)(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) DECLSPEC_HIDDEN;
     1065WINED3D_EXTERN void (WINE_GLAPI *glColorMaterial)(GLenum face, GLenum mode) DECLSPEC_HIDDEN;
     1066WINED3D_EXTERN void (WINE_GLAPI *glColorPointer)(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer) DECLSPEC_HIDDEN;
     1067WINED3D_EXTERN void (WINE_GLAPI *glCopyPixels)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type) DECLSPEC_HIDDEN;
     1068WINED3D_EXTERN void (WINE_GLAPI *glCopyTexImage1D)(GLenum target, GLint level,
     1069                       GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border) DECLSPEC_HIDDEN;
     1070WINED3D_EXTERN void (WINE_GLAPI *glCopyTexImage2D)(GLenum target, GLint level,
     1071                       GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) DECLSPEC_HIDDEN;
     1072WINED3D_EXTERN void (WINE_GLAPI *glCopyTexSubImage1D)(GLenum target, GLint level,
     1073                       GLint xoffset, GLint x, GLint y, GLsizei width) DECLSPEC_HIDDEN;
     1074WINED3D_EXTERN void (WINE_GLAPI *glCopyTexSubImage2D)(GLenum target, GLint level,
     1075                       GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) DECLSPEC_HIDDEN;
     1076WINED3D_EXTERN void (WINE_GLAPI *glCullFace)(GLenum mode) DECLSPEC_HIDDEN;
     1077WINED3D_EXTERN void (WINE_GLAPI *glDeleteLists)(GLuint list, GLsizei range) DECLSPEC_HIDDEN;
     1078WINED3D_EXTERN void (WINE_GLAPI *glDeleteTextures)(GLsizei n, const GLuint *textures) DECLSPEC_HIDDEN;
     1079WINED3D_EXTERN void (WINE_GLAPI *glDepthFunc)(GLenum func) DECLSPEC_HIDDEN;
     1080WINED3D_EXTERN void (WINE_GLAPI *glDepthMask)(GLboolean flag) DECLSPEC_HIDDEN;
     1081WINED3D_EXTERN void (WINE_GLAPI *glDepthRange)(GLclampd nearParam, GLclampd farParam) DECLSPEC_HIDDEN;
     1082WINED3D_EXTERN void (WINE_GLAPI *glDisable)(GLenum cap) DECLSPEC_HIDDEN;
     1083WINED3D_EXTERN void (WINE_GLAPI *glDisableWINE)(GLenum cap) DECLSPEC_HIDDEN;
     1084WINED3D_EXTERN void (WINE_GLAPI *glDisableClientState)(GLenum array) DECLSPEC_HIDDEN;
     1085WINED3D_EXTERN void (WINE_GLAPI *glDrawArrays)(GLenum mode, GLint first, GLsizei count) DECLSPEC_HIDDEN;
     1086WINED3D_EXTERN void (WINE_GLAPI *glDrawBuffer)(GLenum mode) DECLSPEC_HIDDEN;
     1087WINED3D_EXTERN void (WINE_GLAPI *glDrawElements)(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices) DECLSPEC_HIDDEN;
     1088WINED3D_EXTERN void (WINE_GLAPI *glDrawPixels)(GLsizei width, GLsizei height, GLenum format,
     1089                       GLenum type, const GLvoid *pixels) DECLSPEC_HIDDEN;
     1090WINED3D_EXTERN void (WINE_GLAPI *glEdgeFlag)(GLboolean flag) DECLSPEC_HIDDEN;
     1091WINED3D_EXTERN void (WINE_GLAPI *glEdgeFlagPointer)(GLsizei stride, const GLvoid *pointer) DECLSPEC_HIDDEN;
     1092WINED3D_EXTERN void (WINE_GLAPI *glEdgeFlagv)(const GLboolean *flag) DECLSPEC_HIDDEN;
     1093WINED3D_EXTERN void (WINE_GLAPI *glEnable)(GLenum cap) DECLSPEC_HIDDEN;
     1094WINED3D_EXTERN void (WINE_GLAPI *glEnableWINE)(GLenum cap) DECLSPEC_HIDDEN;
     1095WINED3D_EXTERN void (WINE_GLAPI *glEnableClientState)(GLenum array) DECLSPEC_HIDDEN;
     1096WINED3D_EXTERN void (WINE_GLAPI *glEnd)(void) DECLSPEC_HIDDEN;
     1097WINED3D_EXTERN void (WINE_GLAPI *glEndList)(void) DECLSPEC_HIDDEN;
     1098WINED3D_EXTERN void (WINE_GLAPI *glEvalCoord1d)(GLdouble u) DECLSPEC_HIDDEN;
     1099WINED3D_EXTERN void (WINE_GLAPI *glEvalCoord1dv)(const GLdouble *u) DECLSPEC_HIDDEN;
     1100WINED3D_EXTERN void (WINE_GLAPI *glEvalCoord1f)(GLfloat u) DECLSPEC_HIDDEN;
     1101WINED3D_EXTERN void (WINE_GLAPI *glEvalCoord1fv)(const GLfloat *u) DECLSPEC_HIDDEN;
     1102WINED3D_EXTERN void (WINE_GLAPI *glEvalCoord2d)(GLdouble u, GLdouble v) DECLSPEC_HIDDEN;
     1103WINED3D_EXTERN void (WINE_GLAPI *glEvalCoord2dv)(const GLdouble *u) DECLSPEC_HIDDEN;
     1104WINED3D_EXTERN void (WINE_GLAPI *glEvalCoord2f)(GLfloat u, GLfloat v) DECLSPEC_HIDDEN;
     1105WINED3D_EXTERN void (WINE_GLAPI *glEvalCoord2fv)(const GLfloat *u) DECLSPEC_HIDDEN;
     1106WINED3D_EXTERN void (WINE_GLAPI *glEvalMesh1)(GLenum mode, GLint i1, GLint i2) DECLSPEC_HIDDEN;
     1107WINED3D_EXTERN void (WINE_GLAPI *glEvalMesh2)(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2) DECLSPEC_HIDDEN;
     1108WINED3D_EXTERN void (WINE_GLAPI *glEvalPoint1)(GLint i) DECLSPEC_HIDDEN;
     1109WINED3D_EXTERN void (WINE_GLAPI *glEvalPoint2)(GLint i, GLint j) DECLSPEC_HIDDEN;
     1110WINED3D_EXTERN void (WINE_GLAPI *glFeedbackBuffer)(GLsizei size, GLenum type, GLfloat *buffer) DECLSPEC_HIDDEN;
     1111WINED3D_EXTERN void (WINE_GLAPI *glFogf)(GLenum pname, GLfloat param) DECLSPEC_HIDDEN;
     1112WINED3D_EXTERN void (WINE_GLAPI *glFogfv)(GLenum pname, const GLfloat *params) DECLSPEC_HIDDEN;
     1113WINED3D_EXTERN void (WINE_GLAPI *glFogi)(GLenum pname, GLint param) DECLSPEC_HIDDEN;
     1114WINED3D_EXTERN void (WINE_GLAPI *glFogiv)(GLenum pname, const GLint *params) DECLSPEC_HIDDEN;
     1115WINED3D_EXTERN void (WINE_GLAPI *glFrontFace)(GLenum mode) DECLSPEC_HIDDEN;
     1116WINED3D_EXTERN void (WINE_GLAPI *glFrustum)(GLdouble left, GLdouble right, GLdouble bottom,
     1117                       GLdouble top, GLdouble zNear, GLdouble zFar) DECLSPEC_HIDDEN;
     1118WINED3D_EXTERN GLuint (WINE_GLAPI *glGenLists)(GLsizei range) DECLSPEC_HIDDEN;
     1119WINED3D_EXTERN void (WINE_GLAPI *glGenTextures)(GLsizei n, GLuint *textures) DECLSPEC_HIDDEN;
     1120WINED3D_EXTERN void (WINE_GLAPI *glGetBooleanv)(GLenum pname, GLboolean *params) DECLSPEC_HIDDEN;
     1121WINED3D_EXTERN void (WINE_GLAPI *glGetClipPlane)(GLenum plane, GLdouble *equation) DECLSPEC_HIDDEN;
     1122WINED3D_EXTERN void (WINE_GLAPI *glGetDoublev)(GLenum pname, GLdouble *params) DECLSPEC_HIDDEN;
     1123WINED3D_EXTERN GLenum (WINE_GLAPI *glGetError)(void) DECLSPEC_HIDDEN;
     1124WINED3D_EXTERN void (WINE_GLAPI *glGetFloatv)(GLenum pname, GLfloat *params) DECLSPEC_HIDDEN;
     1125WINED3D_EXTERN void (WINE_GLAPI *glGetIntegerv)(GLenum pname, GLint *params) DECLSPEC_HIDDEN;
     1126WINED3D_EXTERN void (WINE_GLAPI *glGetLightfv)(GLenum light, GLenum pname, GLfloat *params) DECLSPEC_HIDDEN;
     1127WINED3D_EXTERN void (WINE_GLAPI *glGetLightiv)(GLenum light, GLenum pname, GLint *params) DECLSPEC_HIDDEN;
     1128WINED3D_EXTERN void (WINE_GLAPI *glGetMapdv)(GLenum target, GLenum query, GLdouble *v) DECLSPEC_HIDDEN;
     1129WINED3D_EXTERN void (WINE_GLAPI *glGetMapfv)(GLenum target, GLenum query, GLfloat *v) DECLSPEC_HIDDEN;
     1130WINED3D_EXTERN void (WINE_GLAPI *glGetMapiv)(GLenum target, GLenum query, GLint *v) DECLSPEC_HIDDEN;
     1131WINED3D_EXTERN void (WINE_GLAPI *glGetMaterialfv)(GLenum face, GLenum pname, GLfloat *params) DECLSPEC_HIDDEN;
     1132WINED3D_EXTERN void (WINE_GLAPI *glGetMaterialiv)(GLenum face, GLenum pname, GLint *params) DECLSPEC_HIDDEN;
     1133WINED3D_EXTERN void (WINE_GLAPI *glGetPixelMapfv)(GLenum map, GLfloat *values) DECLSPEC_HIDDEN;
     1134WINED3D_EXTERN void (WINE_GLAPI *glGetPixelMapuiv)(GLenum map, GLuint *values) DECLSPEC_HIDDEN;
     1135WINED3D_EXTERN void (WINE_GLAPI *glGetPixelMapusv)(GLenum map, GLushort *values) DECLSPEC_HIDDEN;
     1136WINED3D_EXTERN void (WINE_GLAPI *glGetPointerv)(GLenum pname, GLvoid **params) DECLSPEC_HIDDEN;
     1137WINED3D_EXTERN void (WINE_GLAPI *glGetPolygonStipple)(GLubyte *mask) DECLSPEC_HIDDEN;
     1138WINED3D_EXTERN const GLubyte * (WINE_GLAPI *glGetString)(GLenum name) DECLSPEC_HIDDEN;
     1139WINED3D_EXTERN void (WINE_GLAPI *glGetTexEnvfv)(GLenum target, GLenum pname, GLfloat *params) DECLSPEC_HIDDEN;
     1140WINED3D_EXTERN void (WINE_GLAPI *glGetTexEnviv)(GLenum target, GLenum pname, GLint *params) DECLSPEC_HIDDEN;
     1141WINED3D_EXTERN void (WINE_GLAPI *glGetTexGendv)(GLenum coord, GLenum pname, GLdouble *params) DECLSPEC_HIDDEN;
     1142WINED3D_EXTERN void (WINE_GLAPI *glGetTexGenfv)(GLenum coord, GLenum pname, GLfloat *params) DECLSPEC_HIDDEN;
     1143WINED3D_EXTERN void (WINE_GLAPI *glGetTexGeniv)(GLenum coord, GLenum pname, GLint *params) DECLSPEC_HIDDEN;
     1144WINED3D_EXTERN void (WINE_GLAPI *glGetTexImage)(GLenum target, GLint level, GLenum format,
     1145                       GLenum type, GLvoid *pixels) DECLSPEC_HIDDEN;
     1146WINED3D_EXTERN void (WINE_GLAPI *glGetTexLevelParameterfv)(GLenum target, GLint level, GLenum pname, GLfloat *params) DECLSPEC_HIDDEN;
     1147WINED3D_EXTERN void (WINE_GLAPI *glGetTexLevelParameteriv)(GLenum target, GLint level, GLenum pname, GLint *params) DECLSPEC_HIDDEN;
     1148WINED3D_EXTERN void (WINE_GLAPI *glGetTexParameterfv)(GLenum target, GLenum pname, GLfloat *params) DECLSPEC_HIDDEN;
     1149WINED3D_EXTERN void (WINE_GLAPI *glGetTexParameteriv)(GLenum target, GLenum pname, GLint *params) DECLSPEC_HIDDEN;
     1150WINED3D_EXTERN void (WINE_GLAPI *glHint)(GLenum target, GLenum mode) DECLSPEC_HIDDEN;
     1151WINED3D_EXTERN void (WINE_GLAPI *glIndexMask)(GLuint mask) DECLSPEC_HIDDEN;
     1152WINED3D_EXTERN void (WINE_GLAPI *glIndexPointer)(GLenum type, GLsizei stride, const GLvoid *pointer) DECLSPEC_HIDDEN;
     1153WINED3D_EXTERN void (WINE_GLAPI *glIndexd)(GLdouble c) DECLSPEC_HIDDEN;
     1154WINED3D_EXTERN void (WINE_GLAPI *glIndexdv)(const GLdouble *c) DECLSPEC_HIDDEN;
     1155WINED3D_EXTERN void (WINE_GLAPI *glIndexf)(GLfloat c) DECLSPEC_HIDDEN;
     1156WINED3D_EXTERN void (WINE_GLAPI *glIndexfv)(const GLfloat *c) DECLSPEC_HIDDEN;
     1157WINED3D_EXTERN void (WINE_GLAPI *glIndexi)(GLint c) DECLSPEC_HIDDEN;
     1158WINED3D_EXTERN void (WINE_GLAPI *glIndexiv)(const GLint *c) DECLSPEC_HIDDEN;
     1159WINED3D_EXTERN void (WINE_GLAPI *glIndexs)(GLshort c) DECLSPEC_HIDDEN;
     1160WINED3D_EXTERN void (WINE_GLAPI *glIndexsv)(const GLshort *c) DECLSPEC_HIDDEN;
     1161WINED3D_EXTERN void (WINE_GLAPI *glIndexub)(GLubyte c) DECLSPEC_HIDDEN;
     1162WINED3D_EXTERN void (WINE_GLAPI *glIndexubv)(const GLubyte *c) DECLSPEC_HIDDEN;
     1163WINED3D_EXTERN void (WINE_GLAPI *glInitNames)(void) DECLSPEC_HIDDEN;
     1164WINED3D_EXTERN void (WINE_GLAPI *glInterleavedArrays)(GLenum format, GLsizei stride, const GLvoid *pointer) DECLSPEC_HIDDEN;
     1165WINED3D_EXTERN GLboolean (WINE_GLAPI *glIsEnabled)(GLenum cap) DECLSPEC_HIDDEN;
     1166WINED3D_EXTERN GLboolean (WINE_GLAPI *glIsList)(GLuint list) DECLSPEC_HIDDEN;
     1167WINED3D_EXTERN GLboolean (WINE_GLAPI *glIsTexture)(GLuint texture) DECLSPEC_HIDDEN;
     1168WINED3D_EXTERN void (WINE_GLAPI *glLightModelf)(GLenum pname, GLfloat param) DECLSPEC_HIDDEN;
     1169WINED3D_EXTERN void (WINE_GLAPI *glLightModelfv)(GLenum pname, const GLfloat *params) DECLSPEC_HIDDEN;
     1170WINED3D_EXTERN void (WINE_GLAPI *glLightModeli)(GLenum pname, GLint param) DECLSPEC_HIDDEN;
     1171WINED3D_EXTERN void (WINE_GLAPI *glLightModeliv)(GLenum pname, const GLint *params) DECLSPEC_HIDDEN;
     1172WINED3D_EXTERN void (WINE_GLAPI *glLightf)(GLenum light, GLenum pname, GLfloat param) DECLSPEC_HIDDEN;
     1173WINED3D_EXTERN void (WINE_GLAPI *glLightfv)(GLenum light, GLenum pname, const GLfloat *params) DECLSPEC_HIDDEN;
     1174WINED3D_EXTERN void (WINE_GLAPI *glLighti)(GLenum light, GLenum pname, GLint param) DECLSPEC_HIDDEN;
     1175WINED3D_EXTERN void (WINE_GLAPI *glLightiv)(GLenum light, GLenum pname, const GLint *params) DECLSPEC_HIDDEN;
     1176WINED3D_EXTERN void (WINE_GLAPI *glLineStipple)(GLint factor, GLushort pattern) DECLSPEC_HIDDEN;
     1177WINED3D_EXTERN void (WINE_GLAPI *glLineWidth)(GLfloat width) DECLSPEC_HIDDEN;
     1178WINED3D_EXTERN void (WINE_GLAPI *glListBase)(GLuint base) DECLSPEC_HIDDEN;
     1179WINED3D_EXTERN void (WINE_GLAPI *glLoadIdentity)(void) DECLSPEC_HIDDEN;
     1180WINED3D_EXTERN void (WINE_GLAPI *glLoadMatrixd)(const GLdouble *m) DECLSPEC_HIDDEN;
     1181WINED3D_EXTERN void (WINE_GLAPI *glLoadMatrixf)(const GLfloat *m) DECLSPEC_HIDDEN;
     1182WINED3D_EXTERN void (WINE_GLAPI *glLoadName)(GLuint name) DECLSPEC_HIDDEN;
     1183WINED3D_EXTERN void (WINE_GLAPI *glLogicOp)(GLenum opcode) DECLSPEC_HIDDEN;
     1184WINED3D_EXTERN void (WINE_GLAPI *glMap1d)(GLenum target, GLdouble u1, GLdouble u2,
     1185                       GLint stride, GLint order, const GLdouble *points) DECLSPEC_HIDDEN;
     1186WINED3D_EXTERN void (WINE_GLAPI *glMap1f)(GLenum target, GLfloat u1, GLfloat u2, GLint stride,
     1187                       GLint order, const GLfloat *points) DECLSPEC_HIDDEN;
     1188WINED3D_EXTERN void (WINE_GLAPI *glMap2d)(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder,
     1189                       GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points) DECLSPEC_HIDDEN;
     1190WINED3D_EXTERN void (WINE_GLAPI *glMap2f)(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder,
     1191                       GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points) DECLSPEC_HIDDEN;
     1192WINED3D_EXTERN void (WINE_GLAPI *glMapGrid1d)(GLint un, GLdouble u1, GLdouble u2) DECLSPEC_HIDDEN;
     1193WINED3D_EXTERN void (WINE_GLAPI *glMapGrid1f)(GLint un, GLfloat u1, GLfloat u2) DECLSPEC_HIDDEN;
     1194WINED3D_EXTERN void (WINE_GLAPI *glMapGrid2d)(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2) DECLSPEC_HIDDEN;
     1195WINED3D_EXTERN void (WINE_GLAPI *glMapGrid2f)(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2) DECLSPEC_HIDDEN;
     1196WINED3D_EXTERN void (WINE_GLAPI *glMaterialf)(GLenum face, GLenum pname, GLfloat param) DECLSPEC_HIDDEN;
     1197WINED3D_EXTERN void (WINE_GLAPI *glMaterialfv)(GLenum face, GLenum pname, const GLfloat *params) DECLSPEC_HIDDEN;
     1198WINED3D_EXTERN void (WINE_GLAPI *glMateriali)(GLenum face, GLenum pname, GLint param) DECLSPEC_HIDDEN;
     1199WINED3D_EXTERN void (WINE_GLAPI *glMaterialiv)(GLenum face, GLenum pname, const GLint *params) DECLSPEC_HIDDEN;
     1200WINED3D_EXTERN void (WINE_GLAPI *glMatrixMode)(GLenum mode) DECLSPEC_HIDDEN;
     1201WINED3D_EXTERN void (WINE_GLAPI *glMultMatrixd)(const GLdouble *m) DECLSPEC_HIDDEN;
     1202WINED3D_EXTERN void (WINE_GLAPI *glMultMatrixf)(const GLfloat *m) DECLSPEC_HIDDEN;
     1203WINED3D_EXTERN void (WINE_GLAPI *glNewList)(GLuint list, GLenum mode) DECLSPEC_HIDDEN;
     1204WINED3D_EXTERN void (WINE_GLAPI *glNormal3b)(GLbyte nx, GLbyte ny, GLbyte nz) DECLSPEC_HIDDEN;
     1205WINED3D_EXTERN void (WINE_GLAPI *glNormal3bv)(const GLbyte *v) DECLSPEC_HIDDEN;
     1206WINED3D_EXTERN void (WINE_GLAPI *glNormal3d)(GLdouble nx, GLdouble ny, GLdouble nz) DECLSPEC_HIDDEN;
     1207WINED3D_EXTERN void (WINE_GLAPI *glNormal3dv)(const GLdouble *v) DECLSPEC_HIDDEN;
     1208WINED3D_EXTERN void (WINE_GLAPI *glNormal3f)(GLfloat nx, GLfloat ny, GLfloat nz) DECLSPEC_HIDDEN;
     1209WINED3D_EXTERN void (WINE_GLAPI *glNormal3fv)(const GLfloat *v) DECLSPEC_HIDDEN;
     1210WINED3D_EXTERN void (WINE_GLAPI *glNormal3i)(GLint nx, GLint ny, GLint nz) DECLSPEC_HIDDEN;
     1211WINED3D_EXTERN void (WINE_GLAPI *glNormal3iv)(const GLint *v) DECLSPEC_HIDDEN;
     1212WINED3D_EXTERN void (WINE_GLAPI *glNormal3s)(GLshort nx, GLshort ny, GLshort nz) DECLSPEC_HIDDEN;
     1213WINED3D_EXTERN void (WINE_GLAPI *glNormal3sv)(const GLshort *v) DECLSPEC_HIDDEN;
     1214WINED3D_EXTERN void (WINE_GLAPI *glNormalPointer)(GLenum type, GLsizei stride, const GLvoid *pointer) DECLSPEC_HIDDEN;
     1215WINED3D_EXTERN void (WINE_GLAPI *glOrtho)(GLdouble left, GLdouble right, GLdouble bottom,
     1216                       GLdouble top, GLdouble zNear, GLdouble zFar) DECLSPEC_HIDDEN;
     1217WINED3D_EXTERN void (WINE_GLAPI *glPassThrough)(GLfloat token) DECLSPEC_HIDDEN;
     1218WINED3D_EXTERN void (WINE_GLAPI *glPixelMapfv)(GLenum map, GLint mapsize, const GLfloat *values) DECLSPEC_HIDDEN;
     1219WINED3D_EXTERN void (WINE_GLAPI *glPixelMapuiv)(GLenum map, GLint mapsize, const GLuint *values) DECLSPEC_HIDDEN;
     1220WINED3D_EXTERN void (WINE_GLAPI *glPixelMapusv)(GLenum map, GLint mapsize, const GLushort *values) DECLSPEC_HIDDEN;
     1221WINED3D_EXTERN void (WINE_GLAPI *glPixelStoref)(GLenum pname, GLfloat param) DECLSPEC_HIDDEN;
     1222WINED3D_EXTERN void (WINE_GLAPI *glPixelStorei)(GLenum pname, GLint param) DECLSPEC_HIDDEN;
     1223WINED3D_EXTERN void (WINE_GLAPI *glPixelTransferf)(GLenum pname, GLfloat param) DECLSPEC_HIDDEN;
     1224WINED3D_EXTERN void (WINE_GLAPI *glPixelTransferi)(GLenum pname, GLint param) DECLSPEC_HIDDEN;
     1225WINED3D_EXTERN void (WINE_GLAPI *glPixelZoom)(GLfloat xfactor, GLfloat yfactor) DECLSPEC_HIDDEN;
     1226WINED3D_EXTERN void (WINE_GLAPI *glPointSize)(GLfloat size) DECLSPEC_HIDDEN;
     1227WINED3D_EXTERN void (WINE_GLAPI *glPolygonMode)(GLenum face, GLenum mode) DECLSPEC_HIDDEN;
     1228WINED3D_EXTERN void (WINE_GLAPI *glPolygonOffset)(GLfloat factor, GLfloat units) DECLSPEC_HIDDEN;
     1229WINED3D_EXTERN void (WINE_GLAPI *glPolygonStipple)(const GLubyte *mask) DECLSPEC_HIDDEN;
     1230WINED3D_EXTERN void (WINE_GLAPI *glPopAttrib)(void) DECLSPEC_HIDDEN;
     1231WINED3D_EXTERN void (WINE_GLAPI *glPopClientAttrib)(void) DECLSPEC_HIDDEN;
     1232WINED3D_EXTERN void (WINE_GLAPI *glPopMatrix)(void) DECLSPEC_HIDDEN;
     1233WINED3D_EXTERN void (WINE_GLAPI *glPopName)(void) DECLSPEC_HIDDEN;
     1234WINED3D_EXTERN void (WINE_GLAPI *glPrioritizeTextures)(GLsizei n, const GLuint *textures, const GLclampf *priorities) DECLSPEC_HIDDEN;
     1235WINED3D_EXTERN void (WINE_GLAPI *glPushAttrib)(GLbitfield mask) DECLSPEC_HIDDEN;
     1236WINED3D_EXTERN void (WINE_GLAPI *glPushClientAttrib)(GLbitfield mask) DECLSPEC_HIDDEN;
     1237WINED3D_EXTERN void (WINE_GLAPI *glPushMatrix)(void) DECLSPEC_HIDDEN;
     1238WINED3D_EXTERN void (WINE_GLAPI *glPushName)(GLuint name) DECLSPEC_HIDDEN;
     1239WINED3D_EXTERN void (WINE_GLAPI *glRasterPos2d)(GLdouble x, GLdouble y) DECLSPEC_HIDDEN;
     1240WINED3D_EXTERN void (WINE_GLAPI *glRasterPos2dv)(const GLdouble *v) DECLSPEC_HIDDEN;
     1241WINED3D_EXTERN void (WINE_GLAPI *glRasterPos2f)(GLfloat x, GLfloat y) DECLSPEC_HIDDEN;
     1242WINED3D_EXTERN void (WINE_GLAPI *glRasterPos2fv)(const GLfloat *v) DECLSPEC_HIDDEN;
     1243WINED3D_EXTERN void (WINE_GLAPI *glRasterPos2i)(GLint x, GLint y) DECLSPEC_HIDDEN;
     1244WINED3D_EXTERN void (WINE_GLAPI *glRasterPos2iv)(const GLint *v) DECLSPEC_HIDDEN;
     1245WINED3D_EXTERN void (WINE_GLAPI *glRasterPos2s)(GLshort x, GLshort y) DECLSPEC_HIDDEN;
     1246WINED3D_EXTERN void (WINE_GLAPI *glRasterPos2sv)(const GLshort *v) DECLSPEC_HIDDEN;
     1247WINED3D_EXTERN void (WINE_GLAPI *glRasterPos3d)(GLdouble x, GLdouble y, GLdouble z) DECLSPEC_HIDDEN;
     1248WINED3D_EXTERN void (WINE_GLAPI *glRasterPos3dv)(const GLdouble *v) DECLSPEC_HIDDEN;
     1249WINED3D_EXTERN void (WINE_GLAPI *glRasterPos3f)(GLfloat x, GLfloat y, GLfloat z) DECLSPEC_HIDDEN;
     1250WINED3D_EXTERN void (WINE_GLAPI *glRasterPos3fv)(const GLfloat *v) DECLSPEC_HIDDEN;
     1251WINED3D_EXTERN void (WINE_GLAPI *glRasterPos3i)(GLint x, GLint y, GLint z) DECLSPEC_HIDDEN;
     1252WINED3D_EXTERN void (WINE_GLAPI *glRasterPos3iv)(const GLint *v) DECLSPEC_HIDDEN;
     1253WINED3D_EXTERN void (WINE_GLAPI *glRasterPos3s)(GLshort x, GLshort y, GLshort z) DECLSPEC_HIDDEN;
     1254WINED3D_EXTERN void (WINE_GLAPI *glRasterPos3sv)(const GLshort *v) DECLSPEC_HIDDEN;
     1255WINED3D_EXTERN void (WINE_GLAPI *glRasterPos4d)(GLdouble x, GLdouble y, GLdouble z, GLdouble w) DECLSPEC_HIDDEN;
     1256WINED3D_EXTERN void (WINE_GLAPI *glRasterPos4dv)(const GLdouble *v) DECLSPEC_HIDDEN;
     1257WINED3D_EXTERN void (WINE_GLAPI *glRasterPos4f)(GLfloat x, GLfloat y, GLfloat z, GLfloat w) DECLSPEC_HIDDEN;
     1258WINED3D_EXTERN void (WINE_GLAPI *glRasterPos4fv)(const GLfloat *v) DECLSPEC_HIDDEN;
     1259WINED3D_EXTERN void (WINE_GLAPI *glRasterPos4i)(GLint x, GLint y, GLint z, GLint w) DECLSPEC_HIDDEN;
     1260WINED3D_EXTERN void (WINE_GLAPI *glRasterPos4iv)(const GLint *v) DECLSPEC_HIDDEN;
     1261WINED3D_EXTERN void (WINE_GLAPI *glRasterPos4s)(GLshort x, GLshort y, GLshort z, GLshort w) DECLSPEC_HIDDEN;
     1262WINED3D_EXTERN void (WINE_GLAPI *glRasterPos4sv)(const GLshort *v) DECLSPEC_HIDDEN;
     1263WINED3D_EXTERN void (WINE_GLAPI *glReadBuffer)(GLenum mode) DECLSPEC_HIDDEN;
     1264WINED3D_EXTERN void (WINE_GLAPI *glReadPixels)(GLint x, GLint y, GLsizei width, GLsizei height,
     1265                       GLenum format, GLenum type, GLvoid *pixels) DECLSPEC_HIDDEN;
     1266WINED3D_EXTERN void (WINE_GLAPI *glRectd)(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2) DECLSPEC_HIDDEN;
     1267WINED3D_EXTERN void (WINE_GLAPI *glRectdv)(const GLdouble *v1, const GLdouble *v2) DECLSPEC_HIDDEN;
     1268WINED3D_EXTERN void (WINE_GLAPI *glRectf)(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2) DECLSPEC_HIDDEN;
     1269WINED3D_EXTERN void (WINE_GLAPI *glRectfv)(const GLfloat *v1, const GLfloat *v2) DECLSPEC_HIDDEN;
     1270WINED3D_EXTERN void (WINE_GLAPI *glRecti)(GLint x1, GLint y1, GLint x2, GLint y2) DECLSPEC_HIDDEN;
     1271WINED3D_EXTERN void (WINE_GLAPI *glRectiv)(const GLint *v1, const GLint *v2) DECLSPEC_HIDDEN;
     1272WINED3D_EXTERN void (WINE_GLAPI *glRects)(GLshort x1, GLshort y1, GLshort x2, GLshort y2) DECLSPEC_HIDDEN;
     1273WINED3D_EXTERN void (WINE_GLAPI *glRectsv)(const GLshort *v1, const GLshort *v2) DECLSPEC_HIDDEN;
     1274WINED3D_EXTERN GLint (WINE_GLAPI *glRenderMode)(GLenum mode) DECLSPEC_HIDDEN;
     1275WINED3D_EXTERN void (WINE_GLAPI *glRotated)(GLdouble angle, GLdouble x, GLdouble y, GLdouble z) DECLSPEC_HIDDEN;
     1276WINED3D_EXTERN void (WINE_GLAPI *glRotatef)(GLfloat angle, GLfloat x, GLfloat y, GLfloat z) DECLSPEC_HIDDEN;
     1277WINED3D_EXTERN void (WINE_GLAPI *glScaled)(GLdouble x, GLdouble y, GLdouble z) DECLSPEC_HIDDEN;
     1278WINED3D_EXTERN void (WINE_GLAPI *glScalef)(GLfloat x, GLfloat y, GLfloat z) DECLSPEC_HIDDEN;
     1279WINED3D_EXTERN void (WINE_GLAPI *glScissor)(GLint x, GLint y, GLsizei width, GLsizei height) DECLSPEC_HIDDEN;
     1280WINED3D_EXTERN void (WINE_GLAPI *glSelectBuffer)(GLsizei size, GLuint *buffer) DECLSPEC_HIDDEN;
     1281WINED3D_EXTERN void (WINE_GLAPI *glShadeModel)(GLenum mode) DECLSPEC_HIDDEN;
     1282WINED3D_EXTERN void (WINE_GLAPI *glStencilFunc)(GLenum func, GLint ref, GLuint mask) DECLSPEC_HIDDEN;
     1283WINED3D_EXTERN void (WINE_GLAPI *glStencilMask)(GLuint mask) DECLSPEC_HIDDEN;
     1284WINED3D_EXTERN void (WINE_GLAPI *glStencilOp)(GLenum fail, GLenum zfail, GLenum zpass) DECLSPEC_HIDDEN;
     1285WINED3D_EXTERN void (WINE_GLAPI *glTexCoord1d)(GLdouble s) DECLSPEC_HIDDEN;
     1286WINED3D_EXTERN void (WINE_GLAPI *glTexCoord1dv)(const GLdouble *v) DECLSPEC_HIDDEN;
     1287WINED3D_EXTERN void (WINE_GLAPI *glTexCoord1f)(GLfloat s) DECLSPEC_HIDDEN;
     1288WINED3D_EXTERN void (WINE_GLAPI *glTexCoord1fv)(const GLfloat *v) DECLSPEC_HIDDEN;
     1289WINED3D_EXTERN void (WINE_GLAPI *glTexCoord1i)(GLint s) DECLSPEC_HIDDEN;
     1290WINED3D_EXTERN void (WINE_GLAPI *glTexCoord1iv)(const GLint *v) DECLSPEC_HIDDEN;
     1291WINED3D_EXTERN void (WINE_GLAPI *glTexCoord1s)(GLshort s) DECLSPEC_HIDDEN;
     1292WINED3D_EXTERN void (WINE_GLAPI *glTexCoord1sv)(const GLshort *v) DECLSPEC_HIDDEN;
     1293WINED3D_EXTERN void (WINE_GLAPI *glTexCoord2d)(GLdouble s, GLdouble t) DECLSPEC_HIDDEN;
     1294WINED3D_EXTERN void (WINE_GLAPI *glTexCoord2dv)(const GLdouble *v) DECLSPEC_HIDDEN;
     1295WINED3D_EXTERN void (WINE_GLAPI *glTexCoord2f)(GLfloat s, GLfloat t) DECLSPEC_HIDDEN;
     1296WINED3D_EXTERN void (WINE_GLAPI *glTexCoord2fv)(const GLfloat *v) DECLSPEC_HIDDEN;
     1297WINED3D_EXTERN void (WINE_GLAPI *glTexCoord2i)(GLint s, GLint t) DECLSPEC_HIDDEN;
     1298WINED3D_EXTERN void (WINE_GLAPI *glTexCoord2iv)(const GLint *v) DECLSPEC_HIDDEN;
     1299WINED3D_EXTERN void (WINE_GLAPI *glTexCoord2s)(GLshort s, GLshort t) DECLSPEC_HIDDEN;
     1300WINED3D_EXTERN void (WINE_GLAPI *glTexCoord2sv)(const GLshort *v) DECLSPEC_HIDDEN;
     1301WINED3D_EXTERN void (WINE_GLAPI *glTexCoord3d)(GLdouble s, GLdouble t, GLdouble r) DECLSPEC_HIDDEN;
     1302WINED3D_EXTERN void (WINE_GLAPI *glTexCoord3dv)(const GLdouble *v) DECLSPEC_HIDDEN;
     1303WINED3D_EXTERN void (WINE_GLAPI *glTexCoord3f)(GLfloat s, GLfloat t, GLfloat r) DECLSPEC_HIDDEN;
     1304WINED3D_EXTERN void (WINE_GLAPI *glTexCoord3fv)(const GLfloat *v) DECLSPEC_HIDDEN;
     1305WINED3D_EXTERN void (WINE_GLAPI *glTexCoord3i)(GLint s, GLint t, GLint r) DECLSPEC_HIDDEN;
     1306WINED3D_EXTERN void (WINE_GLAPI *glTexCoord3iv)(const GLint *v) DECLSPEC_HIDDEN;
     1307WINED3D_EXTERN void (WINE_GLAPI *glTexCoord3s)(GLshort s, GLshort t, GLshort r) DECLSPEC_HIDDEN;
     1308WINED3D_EXTERN void (WINE_GLAPI *glTexCoord3sv)(const GLshort *v) DECLSPEC_HIDDEN;
     1309WINED3D_EXTERN void (WINE_GLAPI *glTexCoord4d)(GLdouble s, GLdouble t, GLdouble r, GLdouble q) DECLSPEC_HIDDEN;
     1310WINED3D_EXTERN void (WINE_GLAPI *glTexCoord4dv)(const GLdouble *v) DECLSPEC_HIDDEN;
     1311WINED3D_EXTERN void (WINE_GLAPI *glTexCoord4f)(GLfloat s, GLfloat t, GLfloat r, GLfloat q) DECLSPEC_HIDDEN;
     1312WINED3D_EXTERN void (WINE_GLAPI *glTexCoord4fv)(const GLfloat *v) DECLSPEC_HIDDEN;
     1313WINED3D_EXTERN void (WINE_GLAPI *glTexCoord4i)(GLint s, GLint t, GLint r, GLint q) DECLSPEC_HIDDEN;
     1314WINED3D_EXTERN void (WINE_GLAPI *glTexCoord4iv)(const GLint *v) DECLSPEC_HIDDEN;
     1315WINED3D_EXTERN void (WINE_GLAPI *glTexCoord4s)(GLshort s, GLshort t, GLshort r, GLshort q) DECLSPEC_HIDDEN;
     1316WINED3D_EXTERN void (WINE_GLAPI *glTexCoord4sv)(const GLshort *v) DECLSPEC_HIDDEN;
     1317WINED3D_EXTERN void (WINE_GLAPI *glTexCoordPointer)(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer) DECLSPEC_HIDDEN;
     1318WINED3D_EXTERN void (WINE_GLAPI *glTexEnvf)(GLenum target, GLenum pname, GLfloat param) DECLSPEC_HIDDEN;
     1319WINED3D_EXTERN void (WINE_GLAPI *glTexEnvfv)(GLenum target, GLenum pname, const GLfloat *params) DECLSPEC_HIDDEN;
     1320WINED3D_EXTERN void (WINE_GLAPI *glTexEnvi)(GLenum target, GLenum pname, GLint param) DECLSPEC_HIDDEN;
     1321WINED3D_EXTERN void (WINE_GLAPI *glTexEnviv)(GLenum target, GLenum pname, const GLint *params) DECLSPEC_HIDDEN;
     1322WINED3D_EXTERN void (WINE_GLAPI *glTexGend)(GLenum coord, GLenum pname, GLdouble param) DECLSPEC_HIDDEN;
     1323WINED3D_EXTERN void (WINE_GLAPI *glTexGendv)(GLenum coord, GLenum pname, const GLdouble *params) DECLSPEC_HIDDEN;
     1324WINED3D_EXTERN void (WINE_GLAPI *glTexGenf)(GLenum coord, GLenum pname, GLfloat param) DECLSPEC_HIDDEN;
     1325WINED3D_EXTERN void (WINE_GLAPI *glTexGenfv)(GLenum coord, GLenum pname, const GLfloat *params) DECLSPEC_HIDDEN;
     1326WINED3D_EXTERN void (WINE_GLAPI *glTexGeni)(GLenum coord, GLenum pname, GLint param) DECLSPEC_HIDDEN;
     1327WINED3D_EXTERN void (WINE_GLAPI *glTexGeniv)(GLenum coord, GLenum pname, const GLint *params) DECLSPEC_HIDDEN;
     1328WINED3D_EXTERN void (WINE_GLAPI *glTexImage1D)(GLenum target, GLint level, GLint internalformat, GLsizei width,
     1329                       GLint border, GLenum format, GLenum type, const GLvoid *pixels) DECLSPEC_HIDDEN;
     1330WINED3D_EXTERN void (WINE_GLAPI *glTexImage2D)(GLenum target, GLint level, GLint internalformat, GLsizei width,
     1331                       GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels) DECLSPEC_HIDDEN;
     1332WINED3D_EXTERN void (WINE_GLAPI *glTexParameterf)(GLenum target, GLenum pname, GLfloat param) DECLSPEC_HIDDEN;
     1333WINED3D_EXTERN void (WINE_GLAPI *glTexParameterfv)(GLenum target, GLenum pname, const GLfloat *params) DECLSPEC_HIDDEN;
     1334WINED3D_EXTERN void (WINE_GLAPI *glTexParameteri)(GLenum target, GLenum pname, GLint param) DECLSPEC_HIDDEN;
     1335WINED3D_EXTERN void (WINE_GLAPI *glTexParameteriv)(GLenum target, GLenum pname, const GLint *params) DECLSPEC_HIDDEN;
     1336WINED3D_EXTERN void (WINE_GLAPI *glTexSubImage1D)(GLenum target, GLint level, GLint xoffset,
     1337                       GLsizei width, GLenum format, GLenum type, const GLvoid *pixels) DECLSPEC_HIDDEN;
     1338WINED3D_EXTERN void (WINE_GLAPI *glTexSubImage2D)(GLenum target, GLint level, GLint xoffset, GLint yoffset,
     1339                       GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels) DECLSPEC_HIDDEN;
     1340WINED3D_EXTERN void (WINE_GLAPI *glTranslated)(GLdouble x, GLdouble y, GLdouble z) DECLSPEC_HIDDEN;
     1341WINED3D_EXTERN void (WINE_GLAPI *glTranslatef)(GLfloat x, GLfloat y, GLfloat z) DECLSPEC_HIDDEN;
     1342WINED3D_EXTERN void (WINE_GLAPI *glVertex2d)(GLdouble x, GLdouble y) DECLSPEC_HIDDEN;
     1343WINED3D_EXTERN void (WINE_GLAPI *glVertex2dv)(const GLdouble *v) DECLSPEC_HIDDEN;
     1344WINED3D_EXTERN void (WINE_GLAPI *glVertex2f)(GLfloat x, GLfloat y) DECLSPEC_HIDDEN;
     1345WINED3D_EXTERN void (WINE_GLAPI *glVertex2fv)(const GLfloat *v) DECLSPEC_HIDDEN;
     1346WINED3D_EXTERN void (WINE_GLAPI *glVertex2i)(GLint x, GLint y) DECLSPEC_HIDDEN;
     1347WINED3D_EXTERN void (WINE_GLAPI *glVertex2iv)(const GLint *v) DECLSPEC_HIDDEN;
     1348WINED3D_EXTERN void (WINE_GLAPI *glVertex2s)(GLshort x, GLshort y) DECLSPEC_HIDDEN;
     1349WINED3D_EXTERN void (WINE_GLAPI *glVertex2sv)(const GLshort *v) DECLSPEC_HIDDEN;
     1350WINED3D_EXTERN void (WINE_GLAPI *glVertex3d)(GLdouble x, GLdouble y, GLdouble z) DECLSPEC_HIDDEN;
     1351WINED3D_EXTERN void (WINE_GLAPI *glVertex3dv)(const GLdouble *v) DECLSPEC_HIDDEN;
     1352WINED3D_EXTERN void (WINE_GLAPI *glVertex3f)(GLfloat x, GLfloat y, GLfloat z) DECLSPEC_HIDDEN;
     1353WINED3D_EXTERN void (WINE_GLAPI *glVertex3fv)(const GLfloat *v) DECLSPEC_HIDDEN;
     1354WINED3D_EXTERN void (WINE_GLAPI *glVertex3i)(GLint x, GLint y, GLint z) DECLSPEC_HIDDEN;
     1355WINED3D_EXTERN void (WINE_GLAPI *glVertex3iv)(const GLint *v) DECLSPEC_HIDDEN;
     1356WINED3D_EXTERN void (WINE_GLAPI *glVertex3s)(GLshort x, GLshort y, GLshort z) DECLSPEC_HIDDEN;
     1357WINED3D_EXTERN void (WINE_GLAPI *glVertex3sv)(const GLshort *v) DECLSPEC_HIDDEN;
     1358WINED3D_EXTERN void (WINE_GLAPI *glVertex4d)(GLdouble x, GLdouble y, GLdouble z, GLdouble w) DECLSPEC_HIDDEN;
     1359WINED3D_EXTERN void (WINE_GLAPI *glVertex4dv)(const GLdouble *v) DECLSPEC_HIDDEN;
     1360WINED3D_EXTERN void (WINE_GLAPI *glVertex4f)(GLfloat x, GLfloat y, GLfloat z, GLfloat w) DECLSPEC_HIDDEN;
     1361WINED3D_EXTERN void (WINE_GLAPI *glVertex4fv)(const GLfloat *v) DECLSPEC_HIDDEN;
     1362WINED3D_EXTERN void (WINE_GLAPI *glVertex4i)(GLint x, GLint y, GLint z, GLint w) DECLSPEC_HIDDEN;
     1363WINED3D_EXTERN void (WINE_GLAPI *glVertex4iv)(const GLint *v) DECLSPEC_HIDDEN;
     1364WINED3D_EXTERN void (WINE_GLAPI *glVertex4s)(GLshort x, GLshort y, GLshort z, GLshort w) DECLSPEC_HIDDEN;
     1365WINED3D_EXTERN void (WINE_GLAPI *glVertex4sv)(const GLshort *v) DECLSPEC_HIDDEN;
     1366WINED3D_EXTERN void (WINE_GLAPI *glVertexPointer)(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer) DECLSPEC_HIDDEN;
     1367WINED3D_EXTERN void (WINE_GLAPI *glViewport)(GLint x, GLint y, GLsizei width, GLsizei height) DECLSPEC_HIDDEN;
     1368WINED3D_EXTERN void (WINE_GLAPI *glPointParameterfv)(GLenum pname, const GLfloat *params) DECLSPEC_HIDDEN;
    13651369
    13661370/* glFinish and glFlush are always loaded from opengl32.dll, thus they always have
     
    13701374 * name that makes this clear
    13711375 */
    1372 void (__stdcall *wglFinish)(void) DECLSPEC_HIDDEN;
    1373 void (__stdcall *wglFlush)(void) DECLSPEC_HIDDEN;
     1376WINED3D_EXTERN void (__stdcall *wglFinish)(void) DECLSPEC_HIDDEN;
     1377WINED3D_EXTERN void (__stdcall *wglFlush)(void) DECLSPEC_HIDDEN;
    13741378
    13751379/* WGL functions */
    1376 BOOL (WINAPI *pwglDeleteContext)(HGLRC) DECLSPEC_HIDDEN;
    1377 HGLRC (WINAPI *pwglGetCurrentContext)(void) DECLSPEC_HIDDEN;
    1378 HDC (WINAPI *pwglGetCurrentDC)(void) DECLSPEC_HIDDEN;
    1379 PROC (WINAPI *pwglGetProcAddress)(LPCSTR) DECLSPEC_HIDDEN;
    1380 BOOL (WINAPI *pwglMakeCurrent)(HDC, HGLRC) DECLSPEC_HIDDEN;
    1381 BOOL (WINAPI *pwglSwapLayerBuffers)(HDC, UINT) DECLSPEC_HIDDEN;
    1382 BOOL (WINAPI *pwglShareLists)(HGLRC, HGLRC) DECLSPEC_HIDDEN;
    1383 BOOL (WINAPI *pwglChoosePixelFormat)(HDC, const PIXELFORMATDESCRIPTOR *) DECLSPEC_HIDDEN;
    1384 int (WINAPI *pwglDescribePixelFormat)(HDC, int, UINT, LPPIXELFORMATDESCRIPTOR) DECLSPEC_HIDDEN;
    1385 int (WINAPI *pwglGetPixelFormat)(HDC) DECLSPEC_HIDDEN;
    1386 BOOL (WINAPI *pwglSetPixelFormat)(HDC, int, const PIXELFORMATDESCRIPTOR *) DECLSPEC_HIDDEN;
     1380WINED3D_EXTERN BOOL (WINAPI *pwglDeleteContext)(HGLRC) DECLSPEC_HIDDEN;
     1381WINED3D_EXTERN HGLRC (WINAPI *pwglGetCurrentContext)(void) DECLSPEC_HIDDEN;
     1382WINED3D_EXTERN HDC (WINAPI *pwglGetCurrentDC)(void) DECLSPEC_HIDDEN;
     1383WINED3D_EXTERN PROC (WINAPI *pwglGetProcAddress)(LPCSTR) DECLSPEC_HIDDEN;
     1384WINED3D_EXTERN BOOL (WINAPI *pwglMakeCurrent)(HDC, HGLRC) DECLSPEC_HIDDEN;
     1385WINED3D_EXTERN BOOL (WINAPI *pwglSwapLayerBuffers)(HDC, UINT) DECLSPEC_HIDDEN;
     1386WINED3D_EXTERN BOOL (WINAPI *pwglShareLists)(HGLRC, HGLRC) DECLSPEC_HIDDEN;
     1387WINED3D_EXTERN BOOL (WINAPI *pwglChoosePixelFormat)(HDC, const PIXELFORMATDESCRIPTOR *) DECLSPEC_HIDDEN;
     1388WINED3D_EXTERN int (WINAPI *pwglDescribePixelFormat)(HDC, int, UINT, LPPIXELFORMATDESCRIPTOR) DECLSPEC_HIDDEN;
     1389WINED3D_EXTERN int (WINAPI *pwglGetPixelFormat)(HDC) DECLSPEC_HIDDEN;
     1390WINED3D_EXTERN BOOL (WINAPI *pwglSetPixelFormat)(HDC, int, const PIXELFORMATDESCRIPTOR *) DECLSPEC_HIDDEN;
    13871391
    13881392struct VBOXUHGSMI;
    1389 HGLRC (WINAPI *pVBoxCreateContext)(HDC, struct VBOXUHGSMI*) DECLSPEC_HIDDEN;
    1390 void (WINAPI *pVBoxFlushToHost)(HGLRC) DECLSPEC_HIDDEN;
     1393WINED3D_EXTERN HGLRC (WINAPI *pVBoxCreateContext)(HDC, struct VBOXUHGSMI*) DECLSPEC_HIDDEN;
     1394WINED3D_EXTERN void (WINAPI *pVBoxFlushToHost)(HGLRC) DECLSPEC_HIDDEN;
    13911395
    13921396#if defined(VBOX_WITH_WDDM) || defined(VBOX_WINE_WITH_SINGLE_SWAPCHAIN_CONTEXT)
  • trunk/src/VBox/Devices/Graphics/shaderlib/wined3d_private.h

    r53201 r53728  
    192192};
    193193
    194 const struct min_lookup minMipLookup[WINED3DTEXF_LINEAR + 1] DECLSPEC_HIDDEN;
    195 const struct min_lookup minMipLookup_noFilter[WINED3DTEXF_LINEAR + 1] DECLSPEC_HIDDEN;
    196 const struct min_lookup minMipLookup_noMip[WINED3DTEXF_LINEAR + 1] DECLSPEC_HIDDEN;
    197 const GLenum magLookup[WINED3DTEXF_LINEAR + 1] DECLSPEC_HIDDEN;
    198 const GLenum magLookup_noFilter[WINED3DTEXF_LINEAR + 1] DECLSPEC_HIDDEN;
     194extern const struct min_lookup minMipLookup[WINED3DTEXF_LINEAR + 1] DECLSPEC_HIDDEN;
     195extern const struct min_lookup minMipLookup_noFilter[WINED3DTEXF_LINEAR + 1] DECLSPEC_HIDDEN;
     196extern const struct min_lookup minMipLookup_noMip[WINED3DTEXF_LINEAR + 1] DECLSPEC_HIDDEN;
     197extern const GLenum magLookup[WINED3DTEXF_LINEAR + 1] DECLSPEC_HIDDEN;
     198extern const GLenum magLookup_noFilter[WINED3DTEXF_LINEAR + 1] DECLSPEC_HIDDEN;
    199199
    200200static inline GLenum wined3d_gl_mag_filter(const GLenum mag_lookup[], WINED3DTEXTUREFILTERTYPE mag_filter)
     
    15901590extern void add_gl_compat_wrappers(struct wined3d_gl_info *gl_info) DECLSPEC_HIDDEN;
    15911591
     1592extern BOOL IWineD3DImpl_FillGLCaps(struct wined3d_adapter *adapter);
     1593
     1594
    15921595/*****************************************************************************
    15931596 * High order patch management
     
    29492952};
    29502953
    2951 const IWineD3DSwapChainVtbl IWineGDISwapChain_Vtbl DECLSPEC_HIDDEN;
     2954extern const IWineD3DSwapChainVtbl IWineGDISwapChain_Vtbl DECLSPEC_HIDDEN;
    29522955void x11_copy_to_screen(IWineD3DSwapChainImpl *This, const RECT *rc) DECLSPEC_HIDDEN;
    29532956
     
    34303433#define MAKEDWORD_VERSION(maj, min) (((maj & 0xffff) << 16) | (min & 0xffff))
    34313434
    3432 #endif
     3435#ifdef RT_OS_DARWIN
     3436void *MyNSGLGetProcAddress(const char *name);
     3437#endif
     3438
     3439#endif
  • trunk/src/VBox/Devices/Makefile.kmk

    r53600 r53728  
    13811381 # Template used for VBoxSVGA3D.  (Stips away compiler options.)
    13821382 #
    1383  TEMPLATE_VBoxSVGA3D         = VBoxSVGA3D
    1384  TEMPLATE_VBoxSVGA3D_EXTENDS = VBOXR3
    1385  TEMPLATE_VBoxSVGA3D_CFLAGS  = \
    1386         $(filter-out -pedantic -fno-common -Wstrict-prototypes,$(TEMPLATE_VBOXR3_CFLAGS))
    1387  TEMPLATE_VBoxSVGA3D_CXXFLAGS = \
    1388         $(filter-out -pedantic -fno-common,$(TEMPLATE_VBOXR3_CXXFLAGS))
    1389  TEMPLATE_VBoxSVGA3D_CFLAGS.darwin  = \
    1390         $(filter-out -fno-common,$(TEMPLATE_VBOXR3_CFLAGS.darwin))
    1391  TEMPLATE_VBoxSVGA3D_OBJCFLAGS = \
    1392         $(filter-out -pedantic,$(TEMPLATE_VBOXR3_OBJCFLAGS))
    1393  TEMPLATE_VBoxSVGA3D_LDFLAGS.darwin = $(TEMPLATE_VBOXR3_LDFLAGS.darwin) \
    1394         -framework AppKit -framework OpenGL -framework IOKit
     1383 TEMPLATE_VBoxSVGA3D         := VBoxSVGA3D
     1384 TEMPLATE_VBoxSVGA3D_EXTENDS := $(if-expr "$(KBUILD_TARGET)" == "darwin",VBoxR3DllOsX107,VBOXR3)
     1385 TEMPLATE_VBoxSVGA3D_CFLAGS      = $(filter-out -pedantic -Wstrict-prototypes,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_CFLAGS))
     1386 TEMPLATE_VBoxSVGA3D_CXXFLAGS    = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_CXXFLAGS))
     1387 TEMPLATE_VBoxSVGA3D_OBJCFLAGS   = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_OBJCFLAGS))
     1388 TEMPLATE_VBoxSVGA3D_OBJCXXFLAGS = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_OBJCXXFLAGS))
     1389 TEMPLATE_VBoxSVGA3D_LDFLAGS.darwin  = $(TEMPLATE_VBoxR3DllOsX107_LDFLAGS.darwin) \
     1390        -framework AppKit -framework OpenGL -framework IOKit
    13951391
    13961392 #
     
    14541450        Graphics/shaderlib/directx.c \
    14551451        Graphics/shaderlib/libWineStub/debug.c
    1456  if 1
     1452 if 0
    14571453 VBoxSVGA3D_SOURCES.darwin += \
    14581454        Graphics/DevVGA-SVGA3d-cocoa.m
  • trunk/src/VBox/GuestHost/OpenGL/util/blitter.cpp

    r53726 r53728  
    2222#ifdef IN_VMSVGA3D
    2323# include <OpenGL/OpenGL.h>
     24# include <OpenGL/gl3.h>
    2425# include "../include/cr_blitter.h"
    2526# include <iprt/assert.h>
  • trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_cocoa_helper.m

    r53601 r53728  
    9292#ifdef IN_VMSVGA3D
    9393# include "DevVGA-SVGA3d-cocoa.h"
     94# include <OpenGL/OpenGL.h>
     95# include <OpenGL/gl3.h>
     96# include <OpenGL/gl3ext.h>
     97# include <OpenGL/glext.h>
    9498#else
    9599# include <cr_vreg.h>
     
    25582562    NSOpenGLPixelFormatAttribute attribs[24] =
    25592563    {
     2564#ifdef IN_VMSVGA3D
     2565        NSOpenGLPFAOpenGLProfile, NSOpenGLProfileVersion3_2Core,
     2566#endif
    25602567        NSOpenGLPFAAccelerated,
    25612568        NSOpenGLPFAColorSize, (NSOpenGLPixelFormatAttribute)24
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette