Commit da902031 authored by Rinnegatamante's avatar Rinnegatamante
Browse files

Fix for crash on options changing in menu.

parent c8c28b17
......@@ -80,10 +80,14 @@ uint16_t* indices;
float *gVertexBuffer;
float *gColorBuffer;
float *gTexCoordBuffer;
uint8_t inited = 0;
void GLimp_Init( qboolean coreContext)
{
vglInit(0x800000);
vglUseVram(GL_TRUE);
if (!inited){
vglInit(0x800000);
vglUseVram(GL_TRUE);
inited = 1;
}
vglStartRendering();
int i;
indices = (uint16_t*)malloc(sizeof(uint16_t*)*MAX_INDICES);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment