I just got a new computer (Acer Aspire ES1-311) which has an integrated Intel HD Graphics card, and I noticed that this fisheye shader crashes my game (LibGDX game, VM Crash):
varying vec2 v_texCoords; uniform sampler2D u_texture; uniform vec2 pos; uniform float radius = 100; uniform float scale = 1; void main() { vec2 textureCoordinateToUse = v_texCoords; float dist = distance(pos, v_texCoords); textureCoordinateToUse -= pos; if (dist < radius) { float percent = 1.0 + ((0.5 - dist) / 0.5) * scale; textureCoordinateToUse = textureCoordinateToUse * percent; } textureCoordinateToUse += pos; gl_FragColor = texture2D(u_texture, textureCoordinateToUse); } I've tried to update the drivers from the official site, but the driver application says that they might be incompatible with my computer!
However, does anyone spot anything "wrong" in the shader that might cause the crash?
Thanks.