//
// cocos2d::CCGLProgram::compileShader from 0x5e3f70 to 0x5e3ffa (138 bytes)
//
// 2 xrefs:
// > cocos2d::CCGLProgram::initWithVertexShaderByteArray @ 0x5e4026
// > cocos2d::CCGLProgram::initWithVertexShaderByteArray @ 0x5e404c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
bool cocos2d::CCGLProgram::compileShader(cocos2d::CCGLProgram *a1, unsigned int *a2, unsigned int a3, const char *a4)
{
void *v4; // r5
int v6; // [sp+4h] [bp-14h]
size_t byte_count; // [sp+8h] [bp-10h]
if ( !a4 )
return 0;
*a2 = glCreateShader();
glShaderSource();
glCompileShader();
glGetShaderiv();
if ( !v6 )
{
glGetShaderiv();
v4 = malloc(byte_count);
glGetShaderSource();
free(v4);
abort();
}
return v6 == 1;
}