• Martin Storsjö's avatar
    opengl: Fix the ES 1 vs 2 version check · 4f6b2427
    Martin Storsjö authored
    The version string for ES 1 is "OpenGL ES-CM 1.x" or
    "OpenGL ES-CL 1.x". For ES 2 it is "OpenGL ES 2.0", while it
    seems to be only "3.x" for ES 3.
    
    Since the code is mostly built for either ES 1 or ES 2 (only
    Apple support targeting both at the same time, from the same
    built object code - but we only use ES 2 on iOS), simplify
    this down to a compile time decision.
    Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
    4f6b2427
opengl.c 35.6 KB