MSVC build fix

git-svn-id: https://svn.eduke32.com/eduke32@3730 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2013-05-06 18:46:34 +00:00
parent 6dac6ac1c0
commit 5b672a19e3

View file

@ -4507,7 +4507,7 @@ static void polymer_getbuildmaterial(_prmaterial* material, int16_t tile
if (pr_artmapping) {
if (!prartmaps[tilenum]) {
char *tilebuffer = (char *)waloff[tilenum];
char tempbuffer[tilesizx[tilenum] * tilesizy[tilenum]];
char *tempbuffer = (char *)Bmalloc(tilesizx[tilenum] * tilesizy[tilenum]);
int i, j, k;
i = k = 0;
@ -4537,6 +4537,7 @@ static void polymer_getbuildmaterial(_prmaterial* material, int16_t tile
bglTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
bglTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
bglBindTexture(GL_TEXTURE_2D, 0);
Bfree(tempbuffer);
}
if (!prbasepalmaps[curbasepal]) {