Skip to content

Commit

Permalink
Fix incorrect buffer size calculation. Close #111.
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocaster committed Jan 23, 2016
1 parent b1c88c2 commit 34df7f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Layers/xrRender/occRasterizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ occRasterizer::~occRasterizer ()

void occRasterizer::clear ()
{
u32 size = occ_dim*occ_dim*sizeof(float);
u32 size = occ_dim*occ_dim;
float f = 1.f;
MemFill32(bufFrame,0,size);
MemFill32(bufDepth,*LPDWORD(&f),size);
Expand Down

0 comments on commit 34df7f3

Please sign in to comment.