瀏覽代碼

fix win32 build issue

David Rose 14 年之前
父節點
當前提交
f2d095b3a3
共有 2 個文件被更改,包括 2 次插入2 次删除
  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)&&
     if ((gsg != 0)&&
         (gsg->is_valid())&&
         (gsg->is_valid())&&
         (!gsg->needs_reset())&&
         (!gsg->needs_reset())&&
-        (gsg->get_supports_render_texture())) {
+        (DCAST(DXGraphicsStateGuardian8, gsg)->get_supports_render_texture())) {
       precertify = true;
       precertify = true;
     }
     }
     return new wdxGraphicsBuffer8(engine, this, name, fb_prop, win_prop,
     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)&&
     if ((gsg != 0)&&
         (gsg->is_valid())&&
         (gsg->is_valid())&&
         (!gsg->needs_reset())&&
         (!gsg->needs_reset())&&
-        (gsg->get_supports_render_texture())) {
+        (DCAST(DXGraphicsStateGuardian9, gsg)->get_supports_render_texture())) {
       precertify = true;
       precertify = true;
     }
     }
     return new wdxGraphicsBuffer9(engine, this, name, fb_prop, win_prop,
     return new wdxGraphicsBuffer9(engine, this, name, fb_prop, win_prop,