Stefan Dösinger : wined3d: Set the max mipmap level in the pbo test.

Alexandre Julliard julliard at winehq.org
Tue Apr 28 07:53:01 CDT 2009


Module: wine
Branch: master
Commit: 25a59fe71b825c22cdc284f1838076efd74d5b79
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=25a59fe71b825c22cdc284f1838076efd74d5b79

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Wed Apr 22 19:28:53 2009 +0200

wined3d: Set the max mipmap level in the pbo test.

fglrx refuses to use PBOs on not mipmap complete textures. The texture code
already takes care of this, do the same in the test.

---

 dlls/wined3d/directx.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index 2b4520c..02959e0 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -3900,6 +3900,8 @@ static void test_pbo_functionality(WineD3D_GL_Info *gl_info) {
     while(glGetError());
     glGenTextures(1, &texture);
     glBindTexture(GL_TEXTURE_2D, texture);
+
+    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAX_LEVEL, 0);
     glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, 4, 4, 0, GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV, 0);
     checkGLcall("Specifying the PBO test texture\n");
 




More information about the wine-cvs mailing list