mirror of
https://gitlab.com/shinovon/re3-symbian.git
synced 2026-05-23 01:57:21 +03:00
Symbian^3 port
This commit is contained in:
parent
77cdaaf97e
commit
3eb71f2cc5
106 changed files with 2098 additions and 745 deletions
4
vendor/librw/src/gl/gl3shader.cpp
vendored
4
vendor/librw/src/gl/gl3shader.cpp
vendored
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue