From 3e650f2f73be18ca7d7fdd7b0da6abf2234b1ae2 Mon Sep 17 00:00:00 2001 From: rogerman Date: Thu, 18 Jul 2024 12:26:53 -0700 Subject: [PATCH] OpenGL Renderer: Add entry point for glBlendColor, fixing compiling on Windows. (Regression from commit 0c7cb99.) --- desmume/src/OGLRender.cpp | 2 ++ desmume/src/OGLRender.h | 1 + 2 files changed, 3 insertions(+) diff --git a/desmume/src/OGLRender.cpp b/desmume/src/OGLRender.cpp index d5024b873..3a1a4e459 100644 --- a/desmume/src/OGLRender.cpp +++ b/desmume/src/OGLRender.cpp @@ -177,6 +177,7 @@ OGLEXT(PFNGLACTIVETEXTUREPROC, glActiveTexture) // Core in v1.3 // Blending #if !defined(GLX_H) +OGLEXT(PFNGLBLENDCOLORPROC, glBlendColor) // Core in v1.2 OGLEXT(PFNGLBLENDEQUATIONPROC, glBlendEquation) // Core in v1.2 #endif OGLEXT(PFNGLBLENDFUNCSEPARATEPROC, glBlendFuncSeparate) // Core in v1.4 @@ -256,6 +257,7 @@ static void OGLLoadEntryPoints_Legacy() // Blending #if !defined(GLX_H) + INITOGLEXT(PFNGLBLENDCOLORPROC, glBlendColor) // Core in v1.2 INITOGLEXT(PFNGLBLENDEQUATIONPROC, glBlendEquation) // Core in v1.2 #endif INITOGLEXT(PFNGLBLENDFUNCSEPARATEPROC, glBlendFuncSeparate) // Core in v1.4 diff --git a/desmume/src/OGLRender.h b/desmume/src/OGLRender.h index bfa917086..b327a06b3 100644 --- a/desmume/src/OGLRender.h +++ b/desmume/src/OGLRender.h @@ -134,6 +134,7 @@ EXTERNOGLEXT(PFNGLACTIVETEXTUREPROC, glActiveTexture) // Core in v1.3 // Blending #if !defined(GLX_H) +EXTERNOGLEXT(PFNGLBLENDCOLORPROC, glBlendColor) // Core in v1.2 EXTERNOGLEXT(PFNGLBLENDEQUATIONPROC, glBlendEquation) // Core in v1.2 #endif EXTERNOGLEXT(PFNGLBLENDFUNCSEPARATEPROC, glBlendFuncSeparate) // Core in v1.4