From d26f0c9fa4fb94816034a234aeb76be45144c880 Mon Sep 17 00:00:00 2001 From: Wojciech Jarosz Date: Tue, 12 Nov 2024 16:39:18 -0500 Subject: [PATCH] Update texture_gl.cpp --- src/texture_gl.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/texture_gl.cpp b/src/texture_gl.cpp index 82cb41a..4f6ed9a 100644 --- a/src/texture_gl.cpp +++ b/src/texture_gl.cpp @@ -52,6 +52,10 @@ #define GL_DEPTH_COMPONENT32F 0x8CAC #endif +#if !defined(GL_TEXTURE_2D_MULTISAMPLE) +#define GL_TEXTURE_2D_MULTISAMPLE GL_TEXTURE_2D +#endif + static void gl_map_texture_format(Texture::PixelFormat &pixel_format, Texture::ComponentFormat &component_format, GLenum &pixel_format_gl, GLenum &component_format_gl, GLenum &internal_format_gl);