From 068099e5972353c5dfca88072191d5dcf283d27c Mon Sep 17 00:00:00 2001 From: aignacio_sf <> Date: Wed, 14 Dec 2005 19:22:53 +0000 Subject: [PATCH] Update render to texture support for DX9 --- panda/src/dxgsg9/wdxGraphicsPipe9.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/panda/src/dxgsg9/wdxGraphicsPipe9.cxx b/panda/src/dxgsg9/wdxGraphicsPipe9.cxx index 813ced9f33..2231fb3786 100755 --- a/panda/src/dxgsg9/wdxGraphicsPipe9.cxx +++ b/panda/src/dxgsg9/wdxGraphicsPipe9.cxx @@ -107,7 +107,12 @@ PT(GraphicsBuffer) wdxGraphicsPipe9:: make_buffer(GraphicsStateGuardian *gsg, const string &name, int x_size, int y_size) { - return new wdxGraphicsBuffer9(this, gsg, name, x_size, y_size); + if (support_render_texture && gsg->get_supports_render_texture ( )) { + return new wdxGraphicsBuffer9(this, gsg, name, x_size, y_size); + } + else { + return NULL; + } } ////////////////////////////////////////////////////////////////////