Skip to content

Commit

Permalink
gl: disable cull face to fix qml & gvf rendering. sphere=>rect wang-b…
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-bin committed Nov 3, 2016
1 parent eeb8d8d commit 114b661
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/opengl/OpenGLVideo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class OpenGLVideoPrivate : public DPtrPrivate<OpenGLVideo>
, update_geo(true)
, tex_target(0)
, valiad_tex_width(1.0)
, mesh_type(OpenGLVideo::SphereMesh)
, mesh_type(OpenGLVideo::RectMesh)
, geometry(NULL)
, user_shader(NULL)
{
Expand Down Expand Up @@ -346,7 +346,8 @@ void OpenGLVideo::render(const QRectF &target, const QRectF& roi, const QMatrix4
DYGL(glEnable(GL_BLEND));
gl().BlendFuncSeparate(GL_SRC_ALPHA , GL_ONE_MINUS_SRC_ALPHA, GL_SRC_ALPHA , GL_ONE_MINUS_SRC_ALPHA); //
}
DYGL(glEnable(GL_CULL_FACE)); // required for sphere!
//if (d.mesh_type == OpenGLVideo::SphereMesh)
//DYGL(glEnable(GL_CULL_FACE)); // required for sphere! FIXME: broken in qml and qgvf
d.gr.render();
if (blending)
DYGL(glDisable(GL_BLEND));
Expand Down

0 comments on commit 114b661

Please sign in to comment.