summaryrefslogtreecommitdiff
path: root/src/renderergl1
diff options
context:
space:
mode:
authorZack Middleton <zturtleman@gmail.com>2014-11-16 11:53:12 -0600
committerTim Angus <tim@ngus.net>2015-03-17 11:39:01 +0000
commit3fefb6b2abbc1aa2d5af98b0dd81bd19778bde7a (patch)
tree4cbea4b3d28791284999ed5b2d8c4f1dbcb4bfc2 /src/renderergl1
parent2a56a835b35d00b975bdaee659b3b9d1054671b4 (diff)
Correct a few OpenGL variable types
Affectly no change for desktop OpenGL. Use correct types for OpenGLES support.
Diffstat (limited to 'src/renderergl1')
-rw-r--r--src/renderergl1/tr_backend.c2
-rw-r--r--src/renderergl1/tr_shade.c4
-rw-r--r--src/renderergl1/tr_surface.c3
3 files changed, 5 insertions, 4 deletions
diff --git a/src/renderergl1/tr_backend.c b/src/renderergl1/tr_backend.c
index 46284bfa..18a033b6 100644
--- a/src/renderergl1/tr_backend.c
+++ b/src/renderergl1/tr_backend.c
@@ -475,7 +475,7 @@ void RB_BeginDrawingView (void) {
// clip to the plane of the portal
if ( backEnd.viewParms.isPortal ) {
float plane[4];
- double plane2[4];
+ GLdouble plane2[4];
plane[0] = backEnd.viewParms.portalPlane.normal[0];
plane[1] = backEnd.viewParms.portalPlane.normal[1];
diff --git a/src/renderergl1/tr_shade.c b/src/renderergl1/tr_shade.c
index b6d6dbaf..7d3ac8da 100644
--- a/src/renderergl1/tr_shade.c
+++ b/src/renderergl1/tr_shade.c
@@ -422,7 +422,7 @@ static void ProjectDlightTexture_altivec( void ) {
byte clipBits[SHADER_MAX_VERTEXES];
float texCoordsArray[SHADER_MAX_VERTEXES][2];
byte colorArray[SHADER_MAX_VERTEXES][4];
- unsigned hitIndexes[SHADER_MAX_INDEXES];
+ glIndex_t hitIndexes[SHADER_MAX_INDEXES];
int numIndexes;
float scale;
float radius;
@@ -594,7 +594,7 @@ static void ProjectDlightTexture_scalar( void ) {
byte clipBits[SHADER_MAX_VERTEXES];
float texCoordsArray[SHADER_MAX_VERTEXES][2];
byte colorArray[SHADER_MAX_VERTEXES][4];
- unsigned hitIndexes[SHADER_MAX_INDEXES];
+ glIndex_t hitIndexes[SHADER_MAX_INDEXES];
int numIndexes;
float scale;
float radius;
diff --git a/src/renderergl1/tr_surface.c b/src/renderergl1/tr_surface.c
index 8bb01229..b3041f4c 100644
--- a/src/renderergl1/tr_surface.c
+++ b/src/renderergl1/tr_surface.c
@@ -908,7 +908,8 @@ RB_SurfaceFace
*/
static void RB_SurfaceFace( srfSurfaceFace_t *surf ) {
int i;
- unsigned *indices, *tessIndexes;
+ unsigned *indices;
+ glIndex_t *tessIndexes;
float *v;
float *normal;
int ndx;