MCPcopy Create free account
hub / github.com/crownengine/crown / getGLStringHash

Function getGLStringHash

3rdparty/bgfx/src/renderer_gl.cpp:1192–1202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1190 }
1191
1192 static uint32_t getGLStringHash(GLenum _name)
1193 {
1194 const char* str = (const char*)glGetString(_name);
1195 getGlError(); // ignore error if glGetString returns NULL.
1196 if (NULL != str)
1197 {
1198 return bx::hash<bx::HashMurmur2A>(str, (uint32_t)bx::strLen(str) );
1199 }
1200
1201 return 0;
1202 }
1203
1204 void dumpExtensions(const char* _extensions)
1205 {

Callers 1

initMethod · 0.85

Calls 2

getGlErrorFunction · 0.85
strLenFunction · 0.85

Tested by

no test coverage detected