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; + } } ////////////////////////////////////////////////////////////////////