| 1178 | } |
| 1179 | |
| 1180 | static const char* getGLString(GLenum _name) |
| 1181 | { |
| 1182 | const char* str = (const char*)glGetString(_name); |
| 1183 | getGlError(); // ignore error if glGetString returns NULL. |
| 1184 | if (NULL != str) |
| 1185 | { |
| 1186 | return str; |
| 1187 | } |
| 1188 | |
| 1189 | return "<unknown>"; |
| 1190 | } |
| 1191 | |
| 1192 | static uint32_t getGLStringHash(GLenum _name) |
| 1193 | { |