Skip to content

Commit 34df7f3

Browse files
author
nitrocaster
committed
Fix incorrect buffer size calculation. Close #111.
1 parent b1c88c2 commit 34df7f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Layers/xrRender/occRasterizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ occRasterizer::~occRasterizer ()
6565

6666
void occRasterizer::clear ()
6767
{
68-
u32 size = occ_dim*occ_dim*sizeof(float);
68+
u32 size = occ_dim*occ_dim;
6969
float f = 1.f;
7070
MemFill32(bufFrame,0,size);
7171
MemFill32(bufDepth,*LPDWORD(&f),size);

0 commit comments

Comments
 (0)