mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 11:28:17 -04:00
#ifdef for CGDX9
This commit is contained in:
parent
e16fabea35
commit
ced6b0931a
@ -340,9 +340,11 @@ release_texture(TextureContext *tc) {
|
|||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
ShaderContext *CLP(GraphicsStateGuardian)::
|
ShaderContext *CLP(GraphicsStateGuardian)::
|
||||||
prepare_shader(ShaderExpansion *se) {
|
prepare_shader(ShaderExpansion *se) {
|
||||||
|
#ifdef HAVE_CGDX9
|
||||||
CLP(ShaderContext) *result = new CLP(ShaderContext)(se, this);
|
CLP(ShaderContext) *result = new CLP(ShaderContext)(se, this);
|
||||||
if (this -> _cg_context) return result;
|
if (this -> _cg_context) return result;
|
||||||
delete result;
|
delete result;
|
||||||
|
#endif
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user