From 33e889907e26513c4aa03301ee5c3564d3449e0e Mon Sep 17 00:00:00 2001 From: Ray Date: Thu, 7 May 2026 15:20:24 +0200 Subject: [PATCH] ADDED: `GL_SHADING_LANGUAGE_VERSION` for `swGetString()` --- src/external/rlsw.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/external/rlsw.h b/src/external/rlsw.h index a1835d5f8..cc786750c 100644 --- a/src/external/rlsw.h +++ b/src/external/rlsw.h @@ -213,6 +213,7 @@ typedef double GLclampd; #define GL_RENDERER 0x1F01 #define GL_VERSION 0x1F02 #define GL_EXTENSIONS 0x1F03 +#define GL_SHADING_LANGUAGE_VERSION 0x8B8C //#define GL_ATTRIB_STACK_DEPTH 0x0BB0 //#define GL_CLIENT_ATTRIB_STACK_DEPTH 0x0BB1 @@ -520,6 +521,7 @@ typedef enum { SW_RENDERER = GL_RENDERER, SW_VERSION = GL_VERSION, SW_EXTENSIONS = GL_EXTENSIONS, + SW_SHADING_LANGUAGE_VERSION = GL_SHADING_LANGUAGE_VERSION, SW_COLOR_CLEAR_VALUE = GL_COLOR_CLEAR_VALUE, SW_DEPTH_CLEAR_VALUE = GL_DEPTH_CLEAR_VALUE, SW_CURRENT_COLOR = GL_CURRENT_COLOR, @@ -4279,6 +4281,7 @@ const char *swGetString(SWget name) case SW_RENDERER: result = "RLSW OpenGL Software Renderer"; break; case SW_VERSION: result = RLSW_VERSION; break; case SW_EXTENSIONS: result = "None"; break; + case SW_SHADING_LANGUAGE_VERSION: result = "Not supported"; break; default: RLSW.errCode = SW_INVALID_ENUM; break; } @@ -5565,11 +5568,8 @@ static void SW_RASTER_TRIANGLE(const sw_vertex_t *v0, const sw_vertex_t *v1, con // Extracting coordinates from the sorted vertices // Put x away for safe keeping. Only y is used right now. Silences warnings. - //float x0 = v0->position[0]; float y0 = v0->position[1]; - //float x1 = v1->position[0]; float y1 = v1->position[1]; - //float x2 = v2->position[0]; float y2 = v2->position[1]; // Compute height differences