visualtest/config.h.in
author Sam Lantinga
Tue, 10 Jan 2017 08:54:33 -0800
changeset 10806 36f40b8cc979
parent 7924 fcb86d323770
permissions -rwxr-xr-x
Fixed bugs 2570, 3145, improved OpenGL ES context support on Windows and X11

Mark Callow

The attached patch does the following for the X11 and Windows platforms, the only ones where SDL attempts to use context_create_es_profile:

- Adds SDL_HINT_OPENGL_ES_DRIVER by which the application can
say to use the OpenGL ES driver & EGL rather than the Open GL
driver. (For bug #2570)
- Adds code to {WIN,X11}_GL_InitExtensions to determine the maximum
OpenGL ES version supported by the OpenGL driver (for bug #3145)
- Modifies the test that determines whether to use the OpenGL
driver or the real OpenGL ES driver to take into account the
hint, the requested and supported ES version and whether ES 1.X
is being requested. (For bug #2570 & bug #3145)
- Enables the testgles2 test for __WINDOWS__ and __LINUX__ and adds
the test to the VisualC projects.

With the fix in place I have run testdraw2, testgl and testgles2 without any issues and have run my own apps that use OpenGL, OpenGL ES 3 and OpenGL ES 1.1.
icculus@7924
     1
/* config.h.in.  Generated from configure.in by autoheader.  */
icculus@7924
     2
icculus@7924
     3
/* Define to the address where bug reports for this package should be sent. */
icculus@7924
     4
#undef PACKAGE_BUGREPORT
icculus@7924
     5
icculus@7924
     6
/* Define to the full name of this package. */
icculus@7924
     7
#undef PACKAGE_NAME
icculus@7924
     8
icculus@7924
     9
/* Define to the full name and version of this package. */
icculus@7924
    10
#undef PACKAGE_STRING
icculus@7924
    11
icculus@7924
    12
/* Define to the one symbol short name of this package. */
icculus@7924
    13
#undef PACKAGE_TARNAME
icculus@7924
    14
icculus@7924
    15
/* Define to the home page for this package. */
icculus@7924
    16
#undef PACKAGE_URL
icculus@7924
    17
icculus@7924
    18
/* Define to the version of this package. */
icculus@7924
    19
#undef PACKAGE_VERSION
icculus@7924
    20
icculus@7924
    21
/* Define to empty if `const' does not conform to ANSI C. */
icculus@7924
    22
#undef const