Browse Source

Fix issue #435: PixelEffects have flipped screen_coords.y.

vrld 13 years ago
parent
commit
6f1ff69b61
2 changed files with 4 additions and 0 deletions
  1. 1 0
      src/scripts/graphics.lua
  2. 3 0
      src/scripts/graphics.lua.h

+ 1 - 0
src/scripts/graphics.lua

@@ -1290,6 +1290,7 @@ do
 		#define Image sampler2D
 		#define extern uniform
 		#define Texel texture2D
+		layout(origin_upper_left) in vec4 gl_FragCoord;
 		uniform sampler2D _tex0_;]]
 		local footer = [[void main() {
 			// fix weird crashing issue in OSX when _tex0_ is unused within effect()

+ 3 - 0
src/scripts/graphics.lua.h

@@ -6273,6 +6273,9 @@ const unsigned char graphics_lua[] =
 	0x6e, 0x69, 0x66, 0x6f, 0x72, 0x6d, 0x0a,
 	0x09, 0x09, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x54, 0x65, 0x78, 0x65, 0x6c, 0x20, 0x74, 0x65, 
 	0x78, 0x74, 0x75, 0x72, 0x65, 0x32, 0x44, 0x0a,
+	0x09, 0x09, 0x6c, 0x61, 0x79, 0x6f, 0x75, 0x74, 0x28, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x5f, 0x75, 0x70, 
+	0x70, 0x65, 0x72, 0x5f, 0x6c, 0x65, 0x66, 0x74, 0x29, 0x20, 0x69, 0x6e, 0x20, 0x76, 0x65, 0x63, 0x34, 0x20, 
+	0x67, 0x6c, 0x5f, 0x46, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6f, 0x72, 0x64, 0x3b, 0x0a,
 	0x09, 0x09, 0x75, 0x6e, 0x69, 0x66, 0x6f, 0x72, 0x6d, 0x20, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x32, 
 	0x44, 0x20, 0x5f, 0x74, 0x65, 0x78, 0x30, 0x5f, 0x3b, 0x5d, 0x5d, 0x0a,
 	0x09, 0x09, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x66, 0x6f, 0x6f, 0x74, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x5b,