Skip to content

Commit

Permalink
Fixed gcc compilation errors introduced in previous commits.
Browse files Browse the repository at this point in the history
  • Loading branch information
pboechat committed Nov 26, 2024
1 parent 3e0108d commit 6b79259
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion FastCG/src/Graphics/OpenGL/OpenGLBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ namespace FastCG
{
if (mBufferId != ~0u)
{
FASTCG_CHECK_OPENGL_CALL(glDeleteBuffers(1, &mBufferId));
glDeleteBuffers(1, &mBufferId);
}
}

Expand Down
4 changes: 2 additions & 2 deletions FastCG/src/Graphics/OpenGL/OpenGLShader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,13 +256,13 @@ namespace FastCG
{
if (shaderId != ~0u)
{
FASTCG_CHECK_OPENGL_CALL(glDeleteShader(shaderId));
glDeleteShader(shaderId);
}
}

if (mProgramId != ~0u)
{
FASTCG_CHECK_OPENGL_CALL(glDeleteProgram(mProgramId));
glDeleteProgram(mProgramId);
}
}

Expand Down
2 changes: 1 addition & 1 deletion FastCG/src/Graphics/OpenGL/OpenGLTexture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ namespace FastCG
{
if (mTextureId != ~0u)
{
FASTCG_CHECK_OPENGL_CALL(glDeleteTextures(1, &mTextureId));
glDeleteTextures(1, &mTextureId);
}
}
}
Expand Down

0 comments on commit 6b79259

Please sign in to comment.