From f2d095b3a3a5b05c7449fa20e67abd0863d1ad60 Mon Sep 17 00:00:00 2001 From: David Rose Date: Sat, 11 Feb 2012 23:40:57 +0000 Subject: [PATCH] fix win32 build issue --- panda/src/dxgsg8/wdxGraphicsPipe8.cxx | 2 +- panda/src/dxgsg9/wdxGraphicsPipe9.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/panda/src/dxgsg8/wdxGraphicsPipe8.cxx b/panda/src/dxgsg8/wdxGraphicsPipe8.cxx index 3e0707cb05..6412bf1572 100644 --- a/panda/src/dxgsg8/wdxGraphicsPipe8.cxx +++ b/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, diff --git a/panda/src/dxgsg9/wdxGraphicsPipe9.cxx b/panda/src/dxgsg9/wdxGraphicsPipe9.cxx index 30231326d7..3c1236658e 100755 --- a/panda/src/dxgsg9/wdxGraphicsPipe9.cxx +++ b/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,