Skip to content

Commit

Permalink
Fix jitter texture for SSAO.
Browse files Browse the repository at this point in the history
  • Loading branch information
CrossVR committed Nov 15, 2015
1 parent 61f7fa4 commit ea1a1cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cs/engine/layers/xrRenderPC_GL/gl_rendertarget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ CRenderTarget::CRenderTarget ()
}
}
CHK_GL (glBindTexture(GL_TEXTURE_2D, t_noise_surf[it3]));
CHK_GL (glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, TEX_jitter, TEX_jitter, GL_RGBA, GL_UNSIGNED_BYTE, tempDataHBAO));
CHK_GL (glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, TEX_jitter, TEX_jitter, GL_RGBA, GL_FLOAT, tempDataHBAO));
}
}

Expand Down

0 comments on commit ea1a1cd

Please sign in to comment.