Skip to content

Commit

Permalink
Another fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DronCode committed Oct 7, 2023
1 parent 405550b commit 482e5e8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions BMEdit/Editor/Source/Widgets/SceneRenderWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,9 @@ namespace widgets
GLint length { 0 };

gapi->glGetProgramInfoLog(programId, kCompileLogSize, &length, &linkLog[0]);

error = std::string(&linkLog[0], length);
qDebug() << "Failed to link shader program: " << std::string(&linkLog[0], length);
qDebug() << "Failed to link shader program: " << QString::fromStdString(error);

assert(false);
return false;
Expand Down Expand Up @@ -270,9 +271,10 @@ namespace widgets
GLint length { 0 };

gapi->glGetShaderInfoLog(unitId, kCompileLogSize, &length, &compileLog[0]);
qDebug() << "Failed to compile shader program: " << std::string(&compileLog[0], length);

error = std::string(&compileLog[0], length);
qDebug() << "Failed to compile shader program: " << QString::fromStdString(error);

assert(false && "Failed to compile unit!");
return false;
}
Expand Down

0 comments on commit 482e5e8

Please sign in to comment.