Update render to texture support for DX9
This commit is contained in:
parent
7216359719
commit
068099e597
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
|
|
|||
Loading…
Reference in New Issue