Skip to content

Commit

Permalink
Log the error correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
RaananW committed Apr 30, 2024
1 parent 3f4e13d commit 3f6f90b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dev/core/src/Engines/thinEngine.functions.ts
Expand Up @@ -202,7 +202,7 @@ export function _finalizePipelineContext(pipelineContext: WebGLPipelineContext,
if (!linked) {
// Get more info
// Vertex
if (gl.getShaderParameter(vertexShader, gl.COMPILE_STATUS)) {
if (!gl.getShaderParameter(vertexShader, gl.COMPILE_STATUS)) {
const log = gl.getShaderInfoLog(vertexShader);
if (log) {
pipelineContext.vertexCompilationError = log;
Expand Down

0 comments on commit 3f6f90b

Please sign in to comment.