clear our column buffer after allocation
This commit is contained in:
1 parent
f5c4c1bf24
commit
7dd3fb128b
1 file changed
+3
-1
+3
-1
@@ -636,8 +636,10 @@ void R_InitViewBuffer(INT32 width, INT32 height)
|
||||
bufsize++;
|
||||
temp_dc.buf = static_cast<UINT8*>(aligned_alloc(16, bufsize));
|
||||
#else
|
||||
temp_dc.buf = static_cast<UINT8*>(Z_Calloc(bufsize, PU_STATIC, NULL));
|
||||
temp_dc.buf = static_cast<UINT8*>(Z_Malloc(bufsize, PU_STATIC, NULL));
|
||||
#endif
|
||||
|
||||
memset(temp_dc.buf, 0, bufsize);
|
||||
}
|
||||
|
||||
/** \brief The R_VideoErase function
|
||||
|
||||
Reference in new issue
Block a user