#ifdef for CGDX9

This commit is contained in:
David Rose 2006-02-08 07:27:40 +00:00
parent e16fabea35
commit ced6b0931a

View File

@ -340,9 +340,11 @@ release_texture(TextureContext *tc) {
////////////////////////////////////////////////////////////////////
ShaderContext *CLP(GraphicsStateGuardian)::
prepare_shader(ShaderExpansion *se) {
#ifdef HAVE_CGDX9
CLP(ShaderContext) *result = new CLP(ShaderContext)(se, this);
if (this -> _cg_context) return result;
delete result;
#endif
return NULL;
}