Correct a few OpenGL variable types
Affectly no change for desktop OpenGL. Use correct types for OpenGLES support.
This commit is contained in:
parent
89b719ec8d
commit
22bcda018b
4 changed files with 6 additions and 5 deletions
|
@ -474,7 +474,7 @@ void RB_BeginDrawingView (void) {
|
||||||
// clip to the plane of the portal
|
// clip to the plane of the portal
|
||||||
if ( backEnd.viewParms.isPortal ) {
|
if ( backEnd.viewParms.isPortal ) {
|
||||||
float plane[4];
|
float plane[4];
|
||||||
double plane2[4];
|
GLdouble plane2[4];
|
||||||
|
|
||||||
plane[0] = backEnd.viewParms.portalPlane.normal[0];
|
plane[0] = backEnd.viewParms.portalPlane.normal[0];
|
||||||
plane[1] = backEnd.viewParms.portalPlane.normal[1];
|
plane[1] = backEnd.viewParms.portalPlane.normal[1];
|
||||||
|
|
|
@ -421,7 +421,7 @@ static void ProjectDlightTexture_altivec( void ) {
|
||||||
byte clipBits[SHADER_MAX_VERTEXES];
|
byte clipBits[SHADER_MAX_VERTEXES];
|
||||||
float texCoordsArray[SHADER_MAX_VERTEXES][2];
|
float texCoordsArray[SHADER_MAX_VERTEXES][2];
|
||||||
byte colorArray[SHADER_MAX_VERTEXES][4];
|
byte colorArray[SHADER_MAX_VERTEXES][4];
|
||||||
unsigned hitIndexes[SHADER_MAX_INDEXES];
|
glIndex_t hitIndexes[SHADER_MAX_INDEXES];
|
||||||
int numIndexes;
|
int numIndexes;
|
||||||
float scale;
|
float scale;
|
||||||
float radius;
|
float radius;
|
||||||
|
@ -593,7 +593,7 @@ static void ProjectDlightTexture_scalar( void ) {
|
||||||
byte clipBits[SHADER_MAX_VERTEXES];
|
byte clipBits[SHADER_MAX_VERTEXES];
|
||||||
float texCoordsArray[SHADER_MAX_VERTEXES][2];
|
float texCoordsArray[SHADER_MAX_VERTEXES][2];
|
||||||
byte colorArray[SHADER_MAX_VERTEXES][4];
|
byte colorArray[SHADER_MAX_VERTEXES][4];
|
||||||
unsigned hitIndexes[SHADER_MAX_INDEXES];
|
glIndex_t hitIndexes[SHADER_MAX_INDEXES];
|
||||||
int numIndexes;
|
int numIndexes;
|
||||||
float scale;
|
float scale;
|
||||||
float radius;
|
float radius;
|
||||||
|
|
|
@ -907,7 +907,8 @@ RB_SurfaceFace
|
||||||
*/
|
*/
|
||||||
static void RB_SurfaceFace( srfSurfaceFace_t *surf ) {
|
static void RB_SurfaceFace( srfSurfaceFace_t *surf ) {
|
||||||
int i;
|
int i;
|
||||||
unsigned *indices, *tessIndexes;
|
unsigned *indices;
|
||||||
|
glIndex_t *tessIndexes;
|
||||||
float *v;
|
float *v;
|
||||||
float *normal;
|
float *normal;
|
||||||
int ndx;
|
int ndx;
|
||||||
|
|
|
@ -548,7 +548,7 @@ void RB_BeginDrawingView (void) {
|
||||||
if ( backEnd.viewParms.isPortal ) {
|
if ( backEnd.viewParms.isPortal ) {
|
||||||
#if 0
|
#if 0
|
||||||
float plane[4];
|
float plane[4];
|
||||||
double plane2[4];
|
GLdouble plane2[4];
|
||||||
|
|
||||||
plane[0] = backEnd.viewParms.portalPlane.normal[0];
|
plane[0] = backEnd.viewParms.portalPlane.normal[0];
|
||||||
plane[1] = backEnd.viewParms.portalPlane.normal[1];
|
plane[1] = backEnd.viewParms.portalPlane.normal[1];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue