Commit 268070d9 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

opengl32: Avoid double initialization of variables in WGL functions.

parent 6479e32c
...@@ -1057,7 +1057,7 @@ BOOL WINAPI wglGetPixelFormatAttribfvARB( HDC hdc, int format, int layer, UINT c ...@@ -1057,7 +1057,7 @@ BOOL WINAPI wglGetPixelFormatAttribfvARB( HDC hdc, int format, int layer, UINT c
*/ */
HPBUFFERARB WINAPI wglCreatePbufferARB( HDC hdc, int format, int width, int height, const int *attribs ) HPBUFFERARB WINAPI wglCreatePbufferARB( HDC hdc, int format, int width, int height, const int *attribs )
{ {
HPBUFFERARB ret = 0; HPBUFFERARB ret;
struct wgl_pbuffer *pbuffer; struct wgl_pbuffer *pbuffer;
struct opengl_funcs *funcs = get_dc_funcs( hdc ); struct opengl_funcs *funcs = get_dc_funcs( hdc );
...@@ -1749,7 +1749,7 @@ GLint WINAPI glDebugEntry( GLint unknown1, GLint unknown2 ) ...@@ -1749,7 +1749,7 @@ GLint WINAPI glDebugEntry( GLint unknown1, GLint unknown2 )
static GLubyte *filter_extensions_list(const char *extensions, const char *disabled) static GLubyte *filter_extensions_list(const char *extensions, const char *disabled)
{ {
char *p, *str = NULL; char *p, *str;
const char *end; const char *end;
p = str = HeapAlloc(GetProcessHeap(), 0, strlen(extensions) + 2); p = str = HeapAlloc(GetProcessHeap(), 0, strlen(extensions) + 2);
...@@ -1785,7 +1785,7 @@ static GLuint *filter_extensions_index(const char *disabled) ...@@ -1785,7 +1785,7 @@ static GLuint *filter_extensions_index(const char *disabled)
{ {
const struct opengl_funcs *funcs = NtCurrentTeb()->glTable; const struct opengl_funcs *funcs = NtCurrentTeb()->glTable;
const char *ext, *end, *gl_ext; const char *ext, *end, *gl_ext;
GLuint *disabled_exts = NULL, *new_disabled_exts; GLuint *disabled_exts, *new_disabled_exts;
unsigned int i = 0, j, disabled_size; unsigned int i = 0, j, disabled_size;
GLint extensions_count; GLint extensions_count;
......
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