From d89621bd3346d7f6bc64f8de45a2b590ad3df02a Mon Sep 17 00:00:00 2001 From: rdb Date: Fri, 20 May 2011 14:31:56 +0000 Subject: [PATCH] change from zhao to support non-pow textures on dx9 --- panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx b/panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx index 3471507c4c..91de416008 100755 --- a/panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx +++ b/panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx @@ -2578,6 +2578,8 @@ reset() { _max_texture_dimension = min(d3d_caps.MaxTextureWidth, d3d_caps.MaxTextureHeight); + _supports_tex_non_pow2 = !(d3d_caps.TextureCaps & D3DPTEXTURECAPS_POW2); + _supports_texture_combine = ((d3d_caps.TextureOpCaps & D3DTEXOPCAPS_LERP) != 0); _supports_texture_saved_result = ((d3d_caps.PrimitiveMiscCaps & D3DPMISCCAPS_TSSARGTEMP) != 0); _supports_texture_constant_color = ((d3d_caps.PrimitiveMiscCaps & D3DPMISCCAPS_PERSTAGECONSTANT) != 0);