diff options
author | Erwin Coumans <blender@erwincoumans.com> | 2006-04-03 05:28:43 +0400 |
---|---|---|
committer | Erwin Coumans <blender@erwincoumans.com> | 2006-04-03 05:28:43 +0400 |
commit | 36f498aae062e6f0a04de22ac6054b988dde7a32 (patch) | |
tree | bf5b6dcdb0b69482ef4bd6888a1533470a9b7300 /source/gameengine/Ketsji/BL_Shader.cpp | |
parent | d537ce9b25915231c1ff1aeddfa4456b2be8bcab (diff) |
made some gfx debug code win32 specific
Diffstat (limited to 'source/gameengine/Ketsji/BL_Shader.cpp')
-rw-r--r-- | source/gameengine/Ketsji/BL_Shader.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source/gameengine/Ketsji/BL_Shader.cpp b/source/gameengine/Ketsji/BL_Shader.cpp index 08bec1411f5..5598224c1ea 100644 --- a/source/gameengine/Ketsji/BL_Shader.cpp +++ b/source/gameengine/Ketsji/BL_Shader.cpp @@ -214,12 +214,14 @@ BL_Uniform *BL_Shader::FindUniform(const int location) void BL_Shader::SetUniformfv(int location, int type, float *param,int size, bool transpose) { #ifdef SORT_UNIFORMS +#ifdef WIN32 #ifndef NDEBUG MT_assert(type > BL_Uniform::UNI_NONE && type < BL_Uniform::UNI_MAX); MT_assert(location); MT_assert(param); - //MT_assert(size > 0 && size <= BL_Uniform::UNIFORM_MAX_LEN); + //MT_assert(size > 0 && size <= UNIFORM_MAX_LEN); #endif +#endif //WIN32 BL_Uniform *uni= FindUniform(location); if(uni) { @@ -240,12 +242,15 @@ void BL_Shader::SetUniformfv(int location, int type, float *param,int size, bool void BL_Shader::SetUniformiv(int location, int type, int *param,int size, bool transpose) { #ifdef SORT_UNIFORMS +#ifdef WIN32 #ifndef NDEBUG - //MT_assert(type > UNI_NONE && type < UNI_MAX); + //MT_assert(type > BL_Uniform::UNI_NONE && type < BL_Uniform::UNI_MAX); MT_assert(location); MT_assert(param); //MT_assert(size > 0 && size <= UNIFORM_MAX_LEN); #endif +#endif //WIN32 + BL_Uniform *uni= FindUniform(location); if(uni) { |