Skip to content

Commit

Permalink
android: Fix for android OpenGL ES failures
Browse files Browse the repository at this point in the history
Android devices that do not support high precision were failing
on an OpenGL error due to no precision specifiction. The result
was no GUI display, just a black screen.
  • Loading branch information
bennettpeter committed Apr 14, 2019
1 parent d3f58fd commit b60b867
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mythtv/libs/libmythui/mythrender_opengl2es.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ void MythRenderOpenGL2ES::InitProcs()
// GLSL ES precision qualifiers
m_qualifiers = "#ifdef GL_FRAGMENT_PRECISION_HIGH\n"
"precision highp float;\n"
"#else\n"
"precision mediump float;\n"
"#endif\n";

// Default OpenGL ES 2.0
Expand Down

0 comments on commit b60b867

Please sign in to comment.