Skip to content
  • Stefan Dinkelacker's avatar
    Handle shader creation failures · 6d8539d7
    Stefan Dinkelacker authored
    The returned handle of glCreateShader() was not checked against 0 and
    subsequently passed to other OpenGL functions to compile the invalid
    shader object.
    
    Then the compile status is randomly initialized and the following if condition
    is very likely not to trigger as intended.
    
    This fix handles failures during shader object creation and early-outs as
    soon as possible with a descriptive error message.
    6d8539d7