Commit a44f84fd authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Add a proper enum value for "no extension".

This would allow an extension check for ARB_COLOR_BUFFER_FLOAT to work.
parent 0a059aaf
......@@ -754,6 +754,8 @@ static BOOL IWineD3DImpl_FillGLCaps(WineD3D_GL_Info *gl_info) {
if (NULL == GL_Extensions) {
ERR(" GL_Extensions returns NULL\n");
} else {
gl_info->supported[WINED3D_GL_EXT_NONE] = TRUE;
while (*GL_Extensions != 0x00) {
const char *Start;
char ThisExtn[256];
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -3381,6 +3381,7 @@ typedef enum _GL_PSVersion {
/* OpenGL Supported Extensions (ARB and EXT) */
typedef enum _GL_SupportedExt {
WINED3D_GL_EXT_NONE,
/* ARB */
ARB_COLOR_BUFFER_FLOAT,
ARB_DRAW_BUFFERS,
......@@ -3488,7 +3489,7 @@ typedef enum _GL_SupportedExt {
WGL_ARB_PIXEL_FORMAT,
WGL_WINE_PIXEL_FORMAT_PASSTHROUGH,
OPENGL_SUPPORTED_EXT_END
WINED3D_GL_EXT_COUNT,
} GL_SupportedExt;
......@@ -3973,7 +3974,7 @@ typedef struct _WineD3D_GL_Info {
DWORD reserved_glsl_constants;
BOOL glsl_clip_varying;
BOOL supported[OPENGL_SUPPORTED_EXT_END + 1];
BOOL supported[WINED3D_GL_EXT_COUNT];
/** OpenGL EXT and ARB functions ptr */
GL_EXT_FUNCS_GEN
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment