From 7a33e8ddb16dab78828cc706cd28dbb3f9ae40cc Mon Sep 17 00:00:00 2001 From: David Rose Date: Wed, 1 Jun 2005 20:23:16 +0000 Subject: [PATCH] multitexture --- panda/src/dxgsg8/dxGraphicsStateGuardian8.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/panda/src/dxgsg8/dxGraphicsStateGuardian8.cxx b/panda/src/dxgsg8/dxGraphicsStateGuardian8.cxx index 9114d9c051..9d72af2483 100644 --- a/panda/src/dxgsg8/dxGraphicsStateGuardian8.cxx +++ b/panda/src/dxgsg8/dxGraphicsStateGuardian8.cxx @@ -2242,10 +2242,11 @@ do_issue_texture() { // This texture matrix, applied on top of the texcoord // computed by D3DTSS_TCI_CAMERASPACEREFLECTIONVECTOR, // approximates the effect produced by OpenGL's GL_SPHERE_MAP. - LMatrix4f sphere_map(0.33f, 0.0f, 0.0f, 0.0f, - 0.0f, 0.33f, 0.0f, 0.0f, - 0.0f, 0.0f, 1.0f, 0.0f, - 0.5f, 0.5f, 0.0f, 1.0f); + static const LMatrix4f sphere_map + (0.33f, 0.0f, 0.0f, 0.0f, + 0.0f, 0.33f, 0.0f, 0.0f, + 0.0f, 0.0f, 1.0f, 0.0f, + 0.5f, 0.5f, 0.0f, 1.0f); if (has_tex_mat) { tex_mat = sphere_map * tex_mat;