Correctly invalidate the GPU programs and skybox VBO on modeswitches.

git-svn-id: https://svn.eduke32.com/eduke32@1300 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
plagman 2009-04-12 09:57:25 +00:00
parent e58081645e
commit b73cc663eb
1 changed files with 8 additions and 0 deletions

View File

@ -573,6 +573,7 @@ int32_t polymer_init(void)
polymer_loadboard();
polymer_initartsky();
skyboxdatavbo = 0;
if (spriteplane.buffer == NULL) {
spriteplane.buffer = calloc(4, sizeof(GLfloat) * 5);
@ -581,6 +582,13 @@ int32_t polymer_init(void)
memcpy(spriteplane.buffer, horizsprite, sizeof(GLfloat) * 4 * 5);
}
i = 0;
while (i < (1 << PR_BIT_COUNT))
{
prprograms[i].handle = 0;
i++;
}
overridematerial = 0xFFFFFFFF;
polymer_initrendertargets(5);