Browse Source

ref: gl: psvita: revert arrayverts change, it doesn't matter that much

pull/2/head
fgsfds 2 years ago committed by Alibek Omarov
parent
commit
82cfd3ecc3
  1. 16
      ref/gl/gl_studio.c

16
ref/gl/gl_studio.c

@ -25,14 +25,6 @@ GNU General Public License for more details.
#define EVENT_CLIENT 5000 // less than this value it's a server-side studio events #define EVENT_CLIENT 5000 // less than this value it's a server-side studio events
#define MAX_LOCALLIGHTS 4 #define MAX_LOCALLIGHTS 4
#if XASH_PSVITA
// save some address space by decreasing .bss size
// we're not gonna be using the array renderer anyway
#define MAXARRAYVERTS 1
#else
#define MAXARRAYVERTS MAXSTUDIOVERTS
#endif
typedef struct typedef struct
{ {
char name[MAX_OSPATH]; char name[MAX_OSPATH];
@ -120,10 +112,10 @@ typedef struct
player_model_t player_models[MAX_CLIENTS]; player_model_t player_models[MAX_CLIENTS];
// drawelements renderer // drawelements renderer
vec3_t arrayverts[MAXARRAYVERTS]; vec3_t arrayverts[MAXSTUDIOVERTS];
vec2_t arraycoord[MAXARRAYVERTS]; vec2_t arraycoord[MAXSTUDIOVERTS];
unsigned short arrayelems[MAXARRAYVERTS*6]; unsigned short arrayelems[MAXSTUDIOVERTS*6];
GLubyte arraycolor[MAXARRAYVERTS][4]; GLubyte arraycolor[MAXSTUDIOVERTS][4];
uint numverts; uint numverts;
uint numelems; uint numelems;
} studio_draw_state_t; } studio_draw_state_t;

Loading…
Cancel
Save