From 8f9c6892d5ffecee25bb05a52dbc97721b6c9ae5 Mon Sep 17 00:00:00 2001 From: rogerman Date: Wed, 28 Aug 2024 10:33:27 -0700 Subject: [PATCH] OpenGL Renderer: Fix an initialization issue with the clear image shader program when running the 3.2 Core Profile renderer for a driver that only supports OpenGL v3.2. (Regression from commit e2a25e2. Fixes #827.) --- desmume/src/OGLRender_3_2.cpp | 2 +- desmume/src/OGLRender_ES3.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/desmume/src/OGLRender_3_2.cpp b/desmume/src/OGLRender_3_2.cpp index 8fa9bb58a..3515c2728 100644 --- a/desmume/src/OGLRender_3_2.cpp +++ b/desmume/src/OGLRender_3_2.cpp @@ -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"; diff --git a/desmume/src/OGLRender_ES3.cpp b/desmume/src/OGLRender_ES3.cpp index 277fd9c87..3da150557 100644 --- a/desmume/src/OGLRender_ES3.cpp +++ b/desmume/src/OGLRender_ES3.cpp @@ -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";