Commit d8eac069 authored by Charles Davis's avatar Charles Davis Committed by Alexandre Julliard

winemac.drv: Don't bother storing the OpenGL version.

parent b190a72b
...@@ -44,7 +44,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(wgl); ...@@ -44,7 +44,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(wgl);
struct gl_info { struct gl_info {
char *glVersion;
char *glExtensions; char *glExtensions;
char wglExtensions[4096]; char wglExtensions[4096];
...@@ -1259,9 +1258,6 @@ static BOOL init_gl_info(void) ...@@ -1259,9 +1258,6 @@ static BOOL init_gl_info(void)
return FALSE; return FALSE;
} }
str = (const char*)opengl_funcs.gl.p_glGetString(GL_VERSION);
gl_info.glVersion = HeapAlloc(GetProcessHeap(), 0, strlen(str) + 1);
strcpy(gl_info.glVersion, str);
str = (const char*)opengl_funcs.gl.p_glGetString(GL_EXTENSIONS); str = (const char*)opengl_funcs.gl.p_glGetString(GL_EXTENSIONS);
length = strlen(str) + sizeof(legacy_extensions); length = strlen(str) + sizeof(legacy_extensions);
if (allow_vsync) if (allow_vsync)
...@@ -1274,9 +1270,10 @@ static BOOL init_gl_info(void) ...@@ -1274,9 +1270,10 @@ static BOOL init_gl_info(void)
opengl_funcs.gl.p_glGetIntegerv(GL_MAX_VIEWPORT_DIMS, gl_info.max_viewport_dims); opengl_funcs.gl.p_glGetIntegerv(GL_MAX_VIEWPORT_DIMS, gl_info.max_viewport_dims);
TRACE("GL version : %s\n", gl_info.glVersion); str = (const char*)opengl_funcs.gl.p_glGetString(GL_VERSION);
sscanf(str, "%u.%u", &gl_info.max_major, &gl_info.max_minor);
TRACE("GL version : %s\n", str);
TRACE("GL renderer : %s\n", opengl_funcs.gl.p_glGetString(GL_RENDERER)); TRACE("GL renderer : %s\n", opengl_funcs.gl.p_glGetString(GL_RENDERER));
sscanf(gl_info.glVersion, "%u.%u", &gl_info.max_major, &gl_info.max_minor);
CGLSetCurrentContext(old_context); CGLSetCurrentContext(old_context);
CGLReleaseContext(context); CGLReleaseContext(context);
......
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