Skip to content

Commit

Permalink
Changed film_grain.frag from using GLSL 1.2 with GL_EXT_gpu_shader4 t…
Browse files Browse the repository at this point in the history
…o GLSL 1.3. The functionality required (bitwise operators) is present in this version whereas in the present it required the extension.

Some AMD cards did nor support the extension, which led to the game freezing on the Mojang splash screen with no error thrown or clear indication as to what caused it. This issue affected versions 154 and 155.
Closes #510.
  • Loading branch information
Vazkii committed Feb 5, 2015
1 parent 8bc835a commit f8b0f21
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/resources/assets/botania/shader/film_grain.frag
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#version 120
#extension GL_EXT_gpu_shader4 : enable
#version 130

uniform sampler2D bgl_RenderedTexture;
uniform int time; // Passed in, see ShaderHelper.java
Expand Down

1 comment on commit f8b0f21

@Sikovall
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

simply deleting the "#" in line 2 before "extension" will fix the error if you play on a server and cant change or update the mod version of botania 154 or 155

Please sign in to comment.