mirror of
https://gitlab.com/shinovon/re3-symbian.git
synced 2026-05-22 17:47:20 +03:00
Supress logging
This commit is contained in:
parent
3bec747ea6
commit
78e6740735
4 changed files with 22 additions and 6 deletions
5
vendor/librw/src/gl/gl3shader.cpp
vendored
5
vendor/librw/src/gl/gl3shader.cpp
vendored
|
|
@ -189,8 +189,13 @@ compileshader(GLenum type, const char **src, GLuint *shader)
|
|||
glShaderSource(shdr, n, src, nil);
|
||||
glCompileShader(shdr);
|
||||
glGetShaderiv(shdr, GL_COMPILE_STATUS, &success);
|
||||
#ifdef _DEBUG
|
||||
printShaderSource(src);
|
||||
#endif
|
||||
if(!success){
|
||||
#ifndef _DEBUG
|
||||
printShaderSource(src);
|
||||
#endif
|
||||
fprintf(stderr, "Error in %s shader\n",
|
||||
type == GL_VERTEX_SHADER ? "vertex" : "fragment");
|
||||
glGetShaderiv(shdr, GL_INFO_LOG_LENGTH, &len);
|
||||
|
|
|
|||
11
vendor/librw/src/printf_stub.c
vendored
Normal file
11
vendor/librw/src/printf_stub.c
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#ifndef _DEBUG
|
||||
#include <stdio.h>
|
||||
|
||||
int printf(const char * __restrict s, ...) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int puts(const char *s) {
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue