From: dbp Date: Thu, 15 May 2014 06:45:49 +0000 (+0400) Subject: 0024928: Visualization - FSAA is not working in ray-tracing mode X-Git-Tag: V6_8_0_beta~310 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=945c35291ecd5506d913651cbe1301821fe8c7ae;p=occt-copy.git 0024928: Visualization - FSAA is not working in ray-tracing mode --- diff --git a/src/OpenGl/OpenGl_Workspace_Raytrace.cxx b/src/OpenGl/OpenGl_Workspace_Raytrace.cxx index 308db40f86..7ccaf199c7 100755 --- a/src/OpenGl/OpenGl_Workspace_Raytrace.cxx +++ b/src/OpenGl/OpenGl_Workspace_Raytrace.cxx @@ -1976,8 +1976,7 @@ Standard_Boolean OpenGl_Workspace::RunRaytraceShaders (const Graphic3d_CView& th return Standard_True; } - myRaytraceFBO1->ColorTexture()->Bind (myGlContext, - GL_TEXTURE0 + OpenGl_RT_FSAAInputTexture); + myRaytraceFBO1->ColorTexture()->Bind (myGlContext, GL_TEXTURE0 + OpenGl_RT_FSAAInputTexture); myPostFSAAProgram->Bind (myGlContext); @@ -2062,7 +2061,7 @@ Standard_Boolean OpenGl_Workspace::RunRaytraceShaders (const Graphic3d_CView& th if (anIt != 3) // set input for the next pass { - aFramebuffer->ColorTexture()->Bind (myGlContext); + aFramebuffer->ColorTexture()->Bind (myGlContext, GL_TEXTURE0 + OpenGl_RT_FSAAInputTexture); aFramebuffer->UnbindBuffer (myGlContext); } }