Browse Source

fix win32 build issue

David Rose 14 years ago
parent
commit
f2d095b3a3
2 changed files with 2 additions and 2 deletions
  1. 1 1
      panda/src/dxgsg8/wdxGraphicsPipe8.cxx
  2. 1 1
      panda/src/dxgsg9/wdxGraphicsPipe9.cxx

+ 1 - 1
panda/src/dxgsg8/wdxGraphicsPipe8.cxx

@@ -157,7 +157,7 @@ make_output(const string &name,
     if ((gsg != 0)&&
         (gsg->is_valid())&&
         (!gsg->needs_reset())&&
-        (gsg->get_supports_render_texture())) {
+        (DCAST(DXGraphicsStateGuardian8, gsg)->get_supports_render_texture())) {
       precertify = true;
     }
     return new wdxGraphicsBuffer8(engine, this, name, fb_prop, win_prop,

+ 1 - 1
panda/src/dxgsg9/wdxGraphicsPipe9.cxx

@@ -153,7 +153,7 @@ make_output(const string &name,
     if ((gsg != 0)&&
         (gsg->is_valid())&&
         (!gsg->needs_reset())&&
-        (gsg->get_supports_render_texture())) {
+        (DCAST(DXGraphicsStateGuardian9, gsg)->get_supports_render_texture())) {
       precertify = true;
     }
     return new wdxGraphicsBuffer9(engine, this, name, fb_prop, win_prop,