mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
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:
parent
e58081645e
commit
b73cc663eb
1 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue