mirror of
https://github.com/raysan5/raylib.git
synced 2026-05-08 23:02:03 +00:00
ADDED: GL_SHADING_LANGUAGE_VERSION for swGetString()
This commit is contained in:
6
src/external/rlsw.h
vendored
6
src/external/rlsw.h
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user