Module: wine
Branch: master
Commit: 19316ff8cbef0e8f059e912d417db4460c227313
URL: http://source.winehq.org/git/wine.git/?a=commit;h=19316ff8cbef0e8f059e912d4…
Author: Roderick Colenbrander <thunderbird2k(a)gmail.com>
Date: Wed Nov 18 21:36:49 2009 +0100
opengl32: Get rid of invalid opengl 0.0 test.
The test passes on windows using AMD and Nvidia but not on AMD on
linux. A close look at the spec shows that behavior of a version lower
than 3.0 is up to the driver.
---
dlls/opengl32/tests/opengl.c | 12 ------------
1 files changed, 0 insertions(+), 12 deletions(-)
diff --git a/dlls/opengl32/tests/opengl.c b/dlls/opengl32/tests/opengl.c
index 4137eea..c216ed2 100644
--- a/dlls/opengl32/tests/opengl.c
+++ b/dlls/opengl32/tests/opengl.c
@@ -553,18 +553,6 @@ static void test_dc(HWND hwnd, HDC hdc)
static void test_opengl3(HDC hdc)
{
- /* Try to create a context using an invalid OpenGL version namely 0.x */
- {
- HGLRC gl3Ctx;
- int attribs[] = {WGL_CONTEXT_MAJOR_VERSION_ARB, 0, 0};
-
- gl3Ctx = pwglCreateContextAttribsARB(hdc, 0, attribs);
- ok(gl3Ctx == 0, "wglCreateContextAttribs with major version=0 should fail!\n");
-
- if(gl3Ctx)
- wglDeleteContext(gl3Ctx);
- }
-
/* Try to create a context compatible with OpenGL 1.x; 1.0-2.1 is allowed */
{
HGLRC gl3Ctx;
Module: wine
Branch: master
Commit: 1874f314e2c6e3c54e25db8380606cc859adcfc4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1874f314e2c6e3c54e25db838…
Author: Roderick Colenbrander <thunderbird2k(a)gmail.com>
Date: Wed Nov 18 21:25:47 2009 +0100
opengl32: No display driver supports windowless opengl3 rendering and likely no driver will ever will.
---
dlls/opengl32/tests/opengl.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/dlls/opengl32/tests/opengl.c b/dlls/opengl32/tests/opengl.c
index c83f1a0..4137eea 100644
--- a/dlls/opengl32/tests/opengl.c
+++ b/dlls/opengl32/tests/opengl.c
@@ -641,10 +641,13 @@ static void test_opengl3(HDC hdc)
gl3Ctx = pwglCreateContextAttribsARB(hdc, 0, attribs);
ok(gl3Ctx != 0, "pwglCreateContextAttribsARB for a 3.0 context failed!\n");
- /* OpenGL 3.0 allows offscreen rendering WITHOUT a drawable */
- /* NOTE: Nvidia's 177.89 beta drivers don't allow this yet */
+ /* OpenGL 3.0 allows offscreen rendering WITHOUT a drawable
+ * Neither AMD or Nvidia support it at this point. The WGL_ARB_create_context specs also say that
+ * it is hard because drivers use the HDC to enter the display driver and it sounds like they don't
+ * expect drivers to ever offer it.
+ */
res = wglMakeCurrent(0, gl3Ctx);
- todo_wine ok(res == TRUE, "OpenGL 3.0 should allow windowless rendering, but the test failed!\n");
+ ok(res == FALSE, "Wow, OpenGL 3.0 windowless rendering passed while it was expected not to!\n");
if(res)
wglMakeCurrent(0, 0);