Fixups to comments and flags for reversed Z rendering

This commit is contained in:
Levi Burner
2023-09-29 11:34:14 -04:00
parent 2e52bf807b
commit 56403b4dce
9 changed files with 26 additions and 28 deletions
+1 -2
View File
@@ -1614,7 +1614,7 @@ void mjr_makeContext_offSize(const mjModel* m, mjrContext* con, int fontscale,
con->readPixelFormat = GL_RGB;
// set default depth mapping for mjr_readPixels
con->readDepthMapping = mjDM_ZEROTOONE;
con->readDepthMap = mjDEPTHMAP_01;
}
@@ -1836,7 +1836,6 @@ MJAPI void mjr_resizeOffscreen(int width, int height, mjrContext* con) {
glRenderbufferStorage(GL_RENDERBUFFER, GL_RGBA8, con->offWidth, con->offHeight);
}
glBindRenderbuffer(GL_RENDERBUFFER, con->offDepthStencil);
if (con->offSamples) {
glRenderbufferStorageMultisample(GL_RENDERBUFFER, con->offSamples, GL_DEPTH32F_STENCIL8,