From: havoc Date: Tue, 18 Jun 2013 23:01:15 +0000 (+0000) Subject: fix a critical bug with r_restart or vid_restart in R_BufferData_Reset X-Git-Tag: xonotic-v0.8.0~96^2~85 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d4ffca10b770837060cfd8bd43ed11dd810352f8;p=xonotic%2Fdarkplaces.git fix a critical bug with r_restart or vid_restart in R_BufferData_Reset where it did not properly reset all buffers git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11955 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_rmain.c b/gl_rmain.c index c6f2324f..140da814 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -4656,7 +4656,7 @@ void R_BufferData_Reset(void) for (type = 0;type < R_BUFFERDATA_COUNT;type++) { // free all buffers - p = &r_bufferdata_buffer[r_bufferdata_cycle][type]; + p = &r_bufferdata_buffer[cycle][type]; while (*p) { mem = *p;