mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-26 03:30:46 +00:00
polymost.cpp/glsurface.cpp: Don't print shader compile status to the console on success.
git-svn-id: https://svn.eduke32.com/eduke32@6960 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
c536225555
commit
eb964f15d8
2 changed files with 2 additions and 4 deletions
|
@ -38,12 +38,11 @@ static GLuint compileShader(GLenum shaderType, const char* const source)
|
||||||
|
|
||||||
GLint compileStatus;
|
GLint compileStatus;
|
||||||
glGetShaderiv(shaderID, GL_COMPILE_STATUS, &compileStatus);
|
glGetShaderiv(shaderID, GL_COMPILE_STATUS, &compileStatus);
|
||||||
OSD_Printf("Compile Status: %u\n", compileStatus);
|
|
||||||
|
|
||||||
if (!compileStatus)
|
if (!compileStatus)
|
||||||
{
|
{
|
||||||
GLint logLength;
|
GLint logLength;
|
||||||
glGetShaderiv(shaderID, GL_INFO_LOG_LENGTH, &logLength);
|
glGetShaderiv(shaderID, GL_INFO_LOG_LENGTH, &logLength);
|
||||||
|
OSD_Printf("Compile Status: %u\n", compileStatus);
|
||||||
if (logLength > 0)
|
if (logLength > 0)
|
||||||
{
|
{
|
||||||
char *infoLog = (char*) Bmalloc(logLength);
|
char *infoLog = (char*) Bmalloc(logLength);
|
||||||
|
|
|
@ -440,12 +440,11 @@ static GLuint polymost2_compileShader(GLenum shaderType, const char* const sourc
|
||||||
|
|
||||||
GLint compileStatus;
|
GLint compileStatus;
|
||||||
glGetShaderiv(shaderID, GL_COMPILE_STATUS, &compileStatus);
|
glGetShaderiv(shaderID, GL_COMPILE_STATUS, &compileStatus);
|
||||||
OSD_Printf("Compile Status: %u\n", compileStatus);
|
|
||||||
|
|
||||||
if (!compileStatus)
|
if (!compileStatus)
|
||||||
{
|
{
|
||||||
GLint logLength;
|
GLint logLength;
|
||||||
glGetShaderiv(shaderID, GL_INFO_LOG_LENGTH, &logLength);
|
glGetShaderiv(shaderID, GL_INFO_LOG_LENGTH, &logLength);
|
||||||
|
OSD_Printf("Compile Status: %u\n", compileStatus);
|
||||||
if (logLength > 0)
|
if (logLength > 0)
|
||||||
{
|
{
|
||||||
char *infoLog = (char*) malloc(logLength);
|
char *infoLog = (char*) malloc(logLength);
|
||||||
|
|
Loading…
Reference in a new issue