Commit d0803ef1 authored by Bruno Jesus's avatar Bruno Jesus Committed by Alexandre Julliard

opengl32/tests: Test glGetString() without an active GL context.

parent b72c8a76
...@@ -715,6 +715,9 @@ static DWORD WINAPI wgl_thread(void *param) ...@@ -715,6 +715,9 @@ static DWORD WINAPI wgl_thread(void *param)
struct wgl_thread_param *p = param; struct wgl_thread_param *p = param;
HDC hdc = GetDC( p->hwnd ); HDC hdc = GetDC( p->hwnd );
ok(!glGetString(GL_RENDERER) && !glGetString(GL_VERSION) && !glGetString(GL_VENDOR),
"Expected NULL string when no active context is set\n");
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
p->make_current = wglMakeCurrent(hdc, p->hglrc); p->make_current = wglMakeCurrent(hdc, p->hglrc);
p->make_current_error = GetLastError(); p->make_current_error = GetLastError();
...@@ -1668,6 +1671,8 @@ START_TEST(opengl) ...@@ -1668,6 +1671,8 @@ START_TEST(opengl)
test_message_window(); test_message_window();
test_dc(hwnd, hdc); test_dc(hwnd, hdc);
ok(!glGetString(GL_RENDERER) && !glGetString(GL_VERSION) && !glGetString(GL_VENDOR),
"Expected NULL string when no active context is set\n");
hglrc = wglCreateContext(hdc); hglrc = wglCreateContext(hdc);
res = wglMakeCurrent(hdc, hglrc); res = wglMakeCurrent(hdc, hglrc);
ok(res, "wglMakeCurrent failed!\n"); ok(res, "wglMakeCurrent failed!\n");
......
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