Module: wine Branch: master Commit: 65833790773138531f2eb46b7ed507f510bb4681 URL: http://source.winehq.org/git/wine.git/?a=commit;h=65833790773138531f2eb46b7e...
Author: Stefan Dösinger stefan@codeweavers.com Date: Wed Feb 12 12:24:24 2014 +0100
wined3d: Don't use NP2 repacking for RECT textures.
---
dlls/wined3d/surface.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index 628a4a5..8a34807 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -674,7 +674,8 @@ static HRESULT surface_private_setup(struct wined3d_surface *surface) surface->texture_target = GL_TEXTURE_2D;
/* Non-power2 support */ - if (gl_info->supported[ARB_TEXTURE_NON_POWER_OF_TWO] || gl_info->supported[WINED3D_GL_NORMALIZED_TEXRECT]) + if (gl_info->supported[ARB_TEXTURE_NON_POWER_OF_TWO] || gl_info->supported[WINED3D_GL_NORMALIZED_TEXRECT] + || gl_info->supported[ARB_TEXTURE_RECTANGLE]) { pow2Width = surface->resource.width; pow2Height = surface->resource.height;