[PATCH] Add traces in order to obtain information about the opengl driver in use.
Roderick Colenbrander (none)
roderick at roderick-laptop.
Sun Sep 28 10:56:30 CDT 2008
---
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);
--
1.5.4.3
--========GMX187821222618759408074--
More information about the wine-patches
mailing list