[glutils] Cleanup OxError

This commit is contained in:
Gary Talent 2024-12-13 22:06:26 -06:00
parent 96d27eecd1
commit 9881253f2a

View File

@ -83,7 +83,7 @@ static ox::Result<GLShader> buildShader(
ox::Vector<char> errMsg(ox::units::KB); ox::Vector<char> errMsg(ox::units::KB);
glGetShaderInfoLog(shader, static_cast<GLsizei>(errMsg.size()), nullptr, errMsg.data()); glGetShaderInfoLog(shader, static_cast<GLsizei>(errMsg.size()), nullptr, errMsg.data());
oxErrorf("shader compile error in {}: {}", shaderName, errMsg.data()); oxErrorf("shader compile error in {}: {}", shaderName, errMsg.data());
return OxError(1, "shader compile error"); return ox::Error(1, "shader compile error");
} }
return shader; return shader;
} }