mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -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)::
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user