LWJGL Forum

Programming => Bug Reports / RFE => Topic started by: bobjob on December 01, 2015, 14:55:12

Title: [SOLVED] TruetypeOversample demo crash
Post by: bobjob on December 01, 2015, 14:55:12
TruetypeOversample demo crashes when gamma correction and black background used at the same time:


Assertion failed: (value >= 0.0f && value <= 1.0f), function LinearToSRGB, file /Library/Caches/com.apple.xbs/Sources/GPUDriversIntel/GPUDriversIntel-10.10.18/Common/GLRenderer/Intel/bdw/intel_types_util.h, line 763.
Title: Re: TruetypeOversample demo crash
Post by: spasi on December 01, 2015, 19:37:40
Thanks, fixed (https://github.com/LWJGL/lwjgl3/commit/d4932bfeef31ab581d824d219cc6ca7e8c37bd88). Looks like I copied the bug from the original code (https://github.com/nothings/stb/blob/master/tests/oversample/main.c#L91).