Skip to content

Commit 33e8899

Browse files
committed
ADDED: GL_SHADING_LANGUAGE_VERSION for swGetString()
1 parent 6153720 commit 33e8899

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/external/rlsw.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ typedef double GLclampd;
213213
#define GL_RENDERER 0x1F01
214214
#define GL_VERSION 0x1F02
215215
#define GL_EXTENSIONS 0x1F03
216+
#define GL_SHADING_LANGUAGE_VERSION 0x8B8C
216217

217218
//#define GL_ATTRIB_STACK_DEPTH 0x0BB0
218219
//#define GL_CLIENT_ATTRIB_STACK_DEPTH 0x0BB1
@@ -520,6 +521,7 @@ typedef enum {
520521
SW_RENDERER = GL_RENDERER,
521522
SW_VERSION = GL_VERSION,
522523
SW_EXTENSIONS = GL_EXTENSIONS,
524+
SW_SHADING_LANGUAGE_VERSION = GL_SHADING_LANGUAGE_VERSION,
523525
SW_COLOR_CLEAR_VALUE = GL_COLOR_CLEAR_VALUE,
524526
SW_DEPTH_CLEAR_VALUE = GL_DEPTH_CLEAR_VALUE,
525527
SW_CURRENT_COLOR = GL_CURRENT_COLOR,
@@ -4279,6 +4281,7 @@ const char *swGetString(SWget name)
42794281
case SW_RENDERER: result = "RLSW OpenGL Software Renderer"; break;
42804282
case SW_VERSION: result = RLSW_VERSION; break;
42814283
case SW_EXTENSIONS: result = "None"; break;
4284+
case SW_SHADING_LANGUAGE_VERSION: result = "Not supported"; break;
42824285
default: RLSW.errCode = SW_INVALID_ENUM; break;
42834286
}
42844287

@@ -5565,11 +5568,8 @@ static void SW_RASTER_TRIANGLE(const sw_vertex_t *v0, const sw_vertex_t *v1, con
55655568

55665569
// Extracting coordinates from the sorted vertices
55675570
// Put x away for safe keeping. Only y is used right now. Silences warnings.
5568-
//float x0 = v0->position[0];
55695571
float y0 = v0->position[1];
5570-
//float x1 = v1->position[0];
55715572
float y1 = v1->position[1];
5572-
//float x2 = v2->position[0];
55735573
float y2 = v2->position[1];
55745574

55755575
// Compute height differences

0 commit comments

Comments
 (0)