mojoshader_opengl.c
branchtrunk
changeset 230 396aa372c7d8
parent 229 67a3d459d865
child 236 8e2fc535b210
equal deleted inserted replaced
229:67a3d459d865 230:396aa372c7d8
   287                       void *(*lookup)(const char *fnname),
   287                       void *(*lookup)(const char *fnname),
   288                       MOJOSHADER_malloc m, MOJOSHADER_free f, void *d)
   288                       MOJOSHADER_malloc m, MOJOSHADER_free f, void *d)
   289 {
   289 {
   290     error_buffer[0] = '\0';
   290     error_buffer[0] = '\0';
   291 
   291 
   292     if (strcmp(_profile, MOJOSHADER_PROFILE_GLSL) != 0)
   292     if (strcmp(_profile, MOJOSHADER_PROFILE_GLSL) == 0)
   293         profile = MOJOSHADER_PROFILE_GLSL;
   293         profile = MOJOSHADER_PROFILE_GLSL;
   294     else
   294     else
   295     {
   295     {
   296         set_error("unknown profile");
   296         set_error("unknown profile");
   297         goto init_fail;
   297         goto init_fail;