Module: wine Branch: master Commit: 23b1988f1a58f95738ff41b5c092733e1dc0393a URL: http://source.winehq.org/git/wine.git/?a=commit;h=23b1988f1a58f95738ff41b5c0...
Author: Roderick Colenbrander thunderbird2k@gmx.net Date: Sun Sep 28 17:56:30 2008 +0200
opengl32: Add some driver traces to the tests.
---
dlls/opengl32/tests/opengl.c | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/dlls/opengl32/tests/opengl.c b/dlls/opengl32/tests/opengl.c index 036b058..808b6c7 100644 --- a/dlls/opengl32/tests/opengl.c +++ b/dlls/opengl32/tests/opengl.c @@ -22,6 +22,11 @@ #include <wingdi.h> #include "wine/test.h"
+const unsigned char * WINAPI glGetString(unsigned int); +#define GL_VENDOR 0x1F00 +#define GL_RENDERER 0x1F01 +#define GL_VERSION 0x1F02 + #define MAX_FORMATS 256 typedef void* HPBUFFERARB;
@@ -470,6 +475,12 @@ START_TEST(opengl) hglrc = wglCreateContext(hdc); res = wglMakeCurrent(hdc, hglrc); ok(res, "wglMakeCurrent failed!\n"); + if(res) + { + trace("OpenGL renderer: %s\n", glGetString(GL_RENDERER)); + trace("OpenGL driver version: %s\n", glGetString(GL_VERSION)); + trace("OpenGL vendor: %s\n", glGetString(GL_VENDOR)); + }
test_makecurrent(hdc); test_setpixelformat(hdc);