visualtest/testsprite2_sample.parameters
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
# parameter name, type, value range, required, categories
icculus@7924
     2
--gldebug, boolean, [], false, []
icculus@7924
     3
--info, enum, [all video modes render event], false, []
icculus@7924
     4
--log, enum, [all error system audio video render input], false, []
icculus@7924
     5
--display, integer, [1 5], false, []
icculus@7924
     6
--fullscreen, boolean, [], false, []
icculus@7924
     7
--fullscreen-desktop, boolean, [], false, []
icculus@7924
     8
# --windows, integer, [1 5], false, [] # this option is not supported yet
icculus@7924
     9
--title, enum, [vartest bartest footest], false, []
icculus@7924
    10
--icon, enum, [icon.bmp], false, []
icculus@7924
    11
--center, boolean, [], false, []
icculus@7924
    12
--position, enum, [300,300], false, []
icculus@7924
    13
--geometry, enum, [500x500], false, []
icculus@7924
    14
--min-geometry, enum, [100x100], false, []
icculus@7924
    15
--max-geometry, enum, [600x600 700x700], false, []
icculus@7924
    16
--logical, enum, [500x500 550x450], false, []
icculus@7924
    17
--scale, integer, [1 5], false, []
icculus@7924
    18
--depth, integer, [1 5], false, []
icculus@7924
    19
--refresh, integer, [1 5], false, []
icculus@7924
    20
--vsync, boolean, [], false, []
icculus@7924
    21
--noframe, boolean, [], false, []
icculus@7924
    22
--resize, boolean, [], false, []
icculus@7924
    23
--minimize, boolean, [], false, []
icculus@7924
    24
--maximize, boolean, [], false, []
icculus@7924
    25
--grab, boolean, [], false, [mouse]
icculus@7924
    26
--blend, enum, [none blend add mod], false, []
icculus@7924
    27
--cyclecolor, boolean, [], false, []
icculus@7924
    28
--cyclealpha, boolean, [], false, []
icculus@7924
    29
--iterations, integer, [10 100], false, []