Permalink
Browse files

GLVideoDriver::createPrograms: display missing shader errors as fatal

  • Loading branch information...
lynxlynxlynx committed May 4, 2014
1 parent b1af817 commit aa55ce58fc0fc8de2e2e1010b731016596a2191d
Showing with 6 additions and 6 deletions.
  1. +6 −6 gemrb/plugins/SDLVideo/SDL20GLVideo.cpp
@@ -151,7 +151,7 @@ bool GLVideoDriver::createPrograms()
if (!program32)
{
msg = GLSLProgram::GetLastError();
- Log(ERROR, "SDL 2 GL Driver", "Can't build shader program: %s", msg.c_str());
+ Log(FATAL, "SDL 2 GL Driver", "Can't build shader program: %s", msg.c_str());
return false;
}
program32->Use();
@@ -162,7 +162,7 @@ bool GLVideoDriver::createPrograms()
if (!programPal)
{
msg = GLSLProgram::GetLastError();
- Log(ERROR, "SDL 2 GL Driver", "Can't build shader program :%s", msg.c_str());
+ Log(FATAL, "SDL 2 GL Driver", "Can't build shader program :%s", msg.c_str());
return false;
}
programPal->Use();
@@ -175,7 +175,7 @@ bool GLVideoDriver::createPrograms()
if (!programPalGrayed)
{
msg = GLSLProgram::GetLastError();
- Log(ERROR, "SDL 2 GL Driver", "Can't build shader program: %s", msg.c_str());
+ Log(FATAL, "SDL 2 GL Driver", "Can't build shader program: %s", msg.c_str());
return false;
}
programPalGrayed->Use();
@@ -188,7 +188,7 @@ bool GLVideoDriver::createPrograms()
if (!programPalSepia)
{
msg = GLSLProgram::GetLastError();
- Log(ERROR, "SDL 2 GL Driver", "Can't build shader program: %s", msg.c_str());
+ Log(FATAL, "SDL 2 GL Driver", "Can't build shader program: %s", msg.c_str());
return false;
}
programPalSepia->Use();
@@ -201,7 +201,7 @@ bool GLVideoDriver::createPrograms()
if (!programEllipse)
{
msg = GLSLProgram::GetLastError();
- Log(ERROR, "SDL 2 GL Driver", "Can't build shader program: %s", msg.c_str());
+ Log(FATAL, "SDL 2 GL Driver", "Can't build shader program: %s", msg.c_str());
return false;
}
programEllipse->Use();
@@ -211,7 +211,7 @@ bool GLVideoDriver::createPrograms()
if (!programRect)
{
msg = GLSLProgram::GetLastError();
- Log(ERROR, "SDL 2 GL Driver", "Can't build shader program: %s", msg.c_str());
+ Log(FATAL, "SDL 2 GL Driver", "Can't build shader program: %s", msg.c_str());
return false;
}
programRect->Use();

0 comments on commit aa55ce5

Please sign in to comment.