mirror of https://github.com/mosra/magnum.git
Browse Source
The shader code took the image size from uniform if the GL was older than version 3.2 (GLSL 1.50). But the shader class was setting that uniform only if the GL was older than version 3.0. Thus the distance field converter worked only on GL 2.1 and GL >= 3.2. This was discovered only by accident, thanks to the quite recent attempts to create core contexts by default. Because apparently setting explicit version requirements (core GL 3.1) on AMDwill make wglCreateContext() stay on that version and not choosing any later compatible version, similarly to how NVidia behaves. That's another bug for later. Before the application was just creating the context the old way, thus all cards compatible with GL3 were at least on GL 3.2 and thus the missing uniform setting did not affect anybody, thus the bug was effectively hidden.pull/118/head
1 changed files with 2 additions and 2 deletions
Loading…
Reference in new issue