diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2006-01-30 00:29:14 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2006-01-30 00:29:14 +0300 |
commit | 24446906bc81fdd7a899f352f9f3bafff8a4fd00 (patch) | |
tree | 90f0fa9a12336ab0b8c7f59bf4a0a1ff1b0c52f7 /source/gameengine/Ketsji | |
parent | 48fc07716a343c92de796438ec908aad2538cbaf (diff) |
Use ALsizei/GLsizei to fix compile errors on mac / gcc 4.x.
Diffstat (limited to 'source/gameengine/Ketsji')
-rw-r--r-- | source/gameengine/Ketsji/BL_Shader.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/source/gameengine/Ketsji/BL_Shader.cpp b/source/gameengine/Ketsji/BL_Shader.cpp index 4c41101b462..f6aa8f625d6 100644 --- a/source/gameengine/Ketsji/BL_Shader.cpp +++ b/source/gameengine/Ketsji/BL_Shader.cpp @@ -92,8 +92,8 @@ bool BL_Shader::LinkProgram() { #ifdef GL_ARB_shader_objects - int vertlen = 0, fraglen=0, proglen=0; - int vertstatus=0, fragstatus=0, progstatus=0; + GLint vertlen = 0, fraglen=0, proglen=0; + GLint vertstatus=0, fragstatus=0, progstatus=0; unsigned int tmpVert=0, tmpFrag=0, tmpProg=0; int char_len=0; @@ -200,9 +200,11 @@ programError: void BL_Shader::PrintInfo(int len, unsigned int handle, int* num) { #ifdef GL_ARB_shader_objects + GLsizei number; mLog = (char*)MEM_mallocN(sizeof(char)*len, "print_log"); //MT_assert(mLog, "Failed to create memory"); - bgl::blGetInfoLogARB(handle, len, num, mLog); + bgl::blGetInfoLogARB(handle, len, &number, mLog); + *num = number; #endif//GL_ARB_shader_objects } @@ -400,7 +402,7 @@ KX_PYMETHODDEF_DOC( BL_Shader, validate, "validate()") PyErr_Format(PyExc_TypeError, "invalid shader object"); return NULL; } - int stat = 0; + GLint stat = 0; bgl::blValidateProgramARB(mShader); bgl::blGetObjectParameterivARB(mShader, GL_OBJECT_VALIDATE_STATUS_ARB, &stat); return PyInt_FromLong(0); |