Skip to content

Commit

Permalink
GLES <= 3.1 lacks fma, added a define
Browse files Browse the repository at this point in the history
  • Loading branch information
OFFTKP committed Aug 27, 2024
1 parent 1674ad5 commit e421f02
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/PICA/shader_gen_glsl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ std::string FragmentGenerator::getDefaultVertexShader() {
if (api == API::GLES) {
ret += R"(
#define USING_GLES 1
#define fma(a, b, c) ((a) * (b) + (c))
precision mediump int;
precision mediump float;
Expand Down

0 comments on commit e421f02

Please sign in to comment.