Skip to content

Commit

Permalink
Correct a few OpenGL variable types
Browse files Browse the repository at this point in the history
Affectly no change for desktop OpenGL.
Use correct types for OpenGLES support.
  • Loading branch information
zturtleman committed Nov 16, 2014
1 parent 89b719e commit 22bcda0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion code/renderergl1/tr_backend.c
Expand Up @@ -474,7 +474,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];
Expand Down
4 changes: 2 additions & 2 deletions code/renderergl1/tr_shade.c
Expand Up @@ -421,7 +421,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;
Expand Down Expand Up @@ -593,7 +593,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;
Expand Down
3 changes: 2 additions & 1 deletion code/renderergl1/tr_surface.c
Expand Up @@ -907,7 +907,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;
Expand Down
2 changes: 1 addition & 1 deletion code/renderergl2/tr_backend.c
Expand Up @@ -548,7 +548,7 @@ void RB_BeginDrawingView (void) {
if ( backEnd.viewParms.isPortal ) {
#if 0
float plane[4];
double plane2[4];
GLdouble plane2[4];

plane[0] = backEnd.viewParms.portalPlane.normal[0];
plane[1] = backEnd.viewParms.portalPlane.normal[1];
Expand Down

0 comments on commit 22bcda0

Please sign in to comment.