Update render to texture support for DX9

This commit is contained in:
aignacio_sf 2005-12-14 19:22:53 +00:00
parent 7216359719
commit 068099e597
1 changed files with 6 additions and 1 deletions

View File

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