Symbian^3 port

This commit is contained in:
Shinovon 2026-04-29 05:15:13 +05:00
parent 77cdaaf97e
commit 3eb71f2cc5
106 changed files with 2098 additions and 745 deletions

View file

@ -189,8 +189,8 @@ compileshader(GLenum type, const char **src, GLuint *shader)
glShaderSource(shdr, n, src, nil);
glCompileShader(shdr);
glGetShaderiv(shdr, GL_COMPILE_STATUS, &success);
printShaderSource(src);
if(!success){
printShaderSource(src);
fprintf(stderr, "Error in %s shader\n",
type == GL_VERTEX_SHADER ? "vertex" : "fragment");
glGetShaderiv(shdr, GL_INFO_LOG_LENGTH, &len);
@ -295,6 +295,7 @@ Shader::create(const char **vsrc, const char **fsrc)
printf("\n");
#endif
#ifndef __SYMBIAN32__
// set uniform block binding
for(i = 0; i < uniformRegistry.numBlocks; i++){
int idx = glGetUniformBlockIndex(program,
@ -302,6 +303,7 @@ Shader::create(const char **vsrc, const char **fsrc)
if(idx >= 0)
glUniformBlockBinding(program, idx, i);
}
#endif
// query uniform locations
sh->program = program;