Skip to content

Commit

Permalink
OpenGL Renderer: Fix an initialization issue with the clear image sha…
Browse files Browse the repository at this point in the history
…der program when running the 3.2 Core Profile renderer for a driver that only supports OpenGL v3.2. (Regression from commit e2a25e2. Fixes #827.)
  • Loading branch information
rogerman committed Aug 28, 2024
1 parent 4266702 commit 8f9c689
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion desmume/src/OGLRender_3_2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2290,7 +2290,7 @@ Render3DError OpenGLRenderer_3_2::CreateClearImageProgram(const char *vsCString,
else
{
fsHeader << "#define OUT_COLOR out\n";
fsHeader << "#define OUT_FOG_ATTRIBUTES out\n";
fsHeader << "#define OUT_FOGATTR out\n";
}
fsHeader << "\n";

Expand Down
2 changes: 1 addition & 1 deletion desmume/src/OGLRender_ES3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ Render3DError OpenGLESRenderer_3_0::CreateClearImageProgram(const char *vsCStrin
else
{
fsHeader << "#define OUT_COLOR out\n";
fsHeader << "#define OUT_FOG_ATTRIBUTES out\n";
fsHeader << "#define OUT_FOGATTR out\n";
}
fsHeader << "\n";

Expand Down

0 comments on commit 8f9c689

Please sign in to comment.