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.
This commit is contained in:
Stefan Dösinger 2009-04-22 19:28:53 +02:00 committed by Alexandre Julliard
parent 8513f64a01
commit 25a59fe71b
1 changed files with 2 additions and 0 deletions

View File

@ -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");