Changeset 138 for cafu/trunk/Libs/MaterialSystem/Common/OpenGLEx.cpp
- Timestamp:
- 08/27/10 18:55:42 (21 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
cafu/trunk/Libs/MaterialSystem/Common/OpenGLEx.cpp
r36 r138 54 54 { 55 55 // Dies ist im wesentlichen der Code aus dem "OpenGL Programming Guide", Seite 568. 56 intLengthOfExtName=strlen(ExtensionName);57 char* Extensions =(char*)glGetString(GL_EXTENSIONS);56 const size_t LengthOfExtName=strlen(ExtensionName); 57 char* Extensions =(char*)glGetString(GL_EXTENSIONS); 58 58 59 59 if (Extensions==NULL) return false; … … 63 63 while (Extensions<End) 64 64 { 65 const int n=strcspn(Extensions, " ");65 const size_t n=strcspn(Extensions, " "); 66 66 67 67 if (LengthOfExtName==n && strncmp(ExtensionName, Extensions, n)==0) return true;
