Skip to content

Commit

Permalink
[GL] OglSceneFrame: fix background (#5224)
Browse files Browse the repository at this point in the history
* fix frame background if a texture is present

* remove old behavior data
  • Loading branch information
fredroy authored Jan 22, 2025
1 parent 34b72b2 commit 4fa6c5f
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,11 @@ void OglSceneFrame::doDrawVisual(const core::visual::VisualParams* vparams)
glScissor(0,viewport[3]-viewportSize,viewportSize,viewportSize);
break;
}



glEnable(GL_SCISSOR_TEST);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
glClearColor (1.0f, 1.0f, 1.0f, 0.0f);

// only reset depth to appear on front
glClear(GL_DEPTH_BUFFER_BIT );
glMatrixMode(GL_PROJECTION);
vparams->drawTool()->pushMatrix();
glLoadIdentity();
Expand Down

0 comments on commit 4fa6c5f

Please sign in to comment.