From 3d47d4fa0659a35132ee9b0b5089a66f618f9818 Mon Sep 17 00:00:00 2001 From: aignacio_sf <> Date: Fri, 27 Jan 2006 23:20:49 +0000 Subject: [PATCH] Added shader profiles to gsg. --- panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx b/panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx index 1c86c838ee..8c7a5f6f86 100755 --- a/panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx +++ b/panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx @@ -135,7 +135,11 @@ DXGraphicsStateGuardian9(const FrameBufferProperties &properties) : _pixel_shader_version_major = 0; _pixel_shader_version_minor = 0; + _vertex_shader_profile = 0; + _pixel_shader_profile = 0; + _vertex_shader_maximum_constants = 0; + _supports_stream_offset = false; #ifdef HAVE_CGDX9 @@ -2236,7 +2240,12 @@ reset() { _vertex_shader_version_minor = D3DSHADER_VERSION_MINOR (d3d_caps.VertexShaderVersion); _pixel_shader_version_major = D3DSHADER_VERSION_MAJOR (d3d_caps.PixelShaderVersion); _pixel_shader_version_minor = D3DSHADER_VERSION_MINOR (d3d_caps.PixelShaderVersion); + + _vertex_shader_profile = (char *) D3DXGetVertexShaderProfile (_d3d_device); + _pixel_shader_profile = (char *) D3DXGetPixelShaderProfile (_d3d_device); + _vertex_shader_maximum_constants = d3d_caps.MaxVertexShaderConst; + _supports_stream_offset = (d3d_caps.DevCaps2 & D3DDEVCAPS2_STREAMOFFSET) != 0; if (dxgsg9_cat.is_debug()) {