mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2025-01-12 09:20:17 +00:00
example viewer hud: disable depth test
This commit is contained in:
parent
376e9dd3eb
commit
3825319149
@ -277,6 +277,7 @@ GLhud::Flush() {
|
|||||||
ortho(proj, 0, 0, float(GetWidth()), float(GetHeight()));
|
ortho(proj, 0, 0, float(GetWidth()), float(GetHeight()));
|
||||||
glUniformMatrix4fv(_mvpMatrix, 1, GL_FALSE, proj);
|
glUniformMatrix4fv(_mvpMatrix, 1, GL_FALSE, proj);
|
||||||
|
|
||||||
|
glDisable(GL_DEPTH_TEST);
|
||||||
{
|
{
|
||||||
glActiveTexture(GL_TEXTURE0);
|
glActiveTexture(GL_TEXTURE0);
|
||||||
glBindTexture(GL_TEXTURE_2D, _fontTexture);
|
glBindTexture(GL_TEXTURE_2D, _fontTexture);
|
||||||
@ -289,6 +290,7 @@ GLhud::Flush() {
|
|||||||
|
|
||||||
glBindTexture(GL_TEXTURE_2D, 0);
|
glBindTexture(GL_TEXTURE_2D, 0);
|
||||||
}
|
}
|
||||||
|
glEnable(GL_DEPTH_TEST);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user