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