Module: wine Branch: master Commit: 7928ffaca5288b56fcc0b4b95cd4a54fcede707a URL: http://source.winehq.org/git/wine.git/?a=commit;h=7928ffaca5288b56fcc0b4b95c...
Author: Matteo Bruni mbruni@codeweavers.com Date: Thu Apr 23 22:41:15 2015 +0200
wined3d: Drop glPrioritizeTextures() call.
It's not supported on core profiles and I doubt it matters anyway. For the records, the default value is 1 so this was actually lowering the priority for DEFAULT pool textures.
---
dlls/wined3d/texture.c | 7 ------- 1 file changed, 7 deletions(-)
diff --git a/dlls/wined3d/texture.c b/dlls/wined3d/texture.c index de92e0e..1a87386 100644 --- a/dlls/wined3d/texture.c +++ b/dlls/wined3d/texture.c @@ -187,13 +187,6 @@ void wined3d_texture_bind(struct wined3d_texture *texture, return; }
- if (texture->resource.pool == WINED3D_POOL_DEFAULT) - { - /* Tell OpenGL to try and keep this texture in video ram (well mostly). */ - GLclampf tmp = 0.9f; - gl_info->gl_ops.gl.p_glPrioritizeTextures(1, &gl_tex->name, &tmp); - } - /* Initialise the state of the texture object to the OpenGL defaults, not * the wined3d defaults. */ gl_tex->sampler_desc.address_u = WINED3D_TADDRESS_WRAP;