Skip to content

Commit

Permalink
override GL_RED (if not present) with GL_LUMINANCE
Browse files Browse the repository at this point in the history
  • Loading branch information
AlwinEsch committed Aug 30, 2019
1 parent 59614a6 commit 4b8d3a4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@
#define AUDIO_BUFFER (1024)
#define NUM_BANDS (AUDIO_BUFFER / 2)

// Override GL_RED if not present with GL_LUMINANCE, e.g. on Android GLES
#ifndef GL_RED
#define GL_RED GL_LUMINANCE
#endif

struct Preset
{
std::string name;
Expand Down

0 comments on commit 4b8d3a4

Please sign in to comment.