Browse Source

minor fixes

Nicolas Cannasse 9 years ago
parent
commit
9eb9d0d050
2 changed files with 2 additions and 2 deletions
  1. 1 1
      libs/sdl/gl.c
  2. 1 1
      libs/sdl/sdl/Event.hx

+ 1 - 1
libs/sdl/gl.c

@@ -271,7 +271,7 @@ HL_PRIM vdynamic *HL_NAME(gl_create_framebuffer)() {
 }
 
 HL_PRIM void HL_NAME(gl_bind_framebuffer)( int target, vdynamic *f ) {
-	glBindFramebuffer(target, f->v.i);
+	glBindFramebuffer(target, ZIDX(f));
 }
 
 HL_PRIM void HL_NAME(gl_framebuffer_texture2d)( int target, int attach, int texTarget, vdynamic *t, int level ) {

+ 1 - 1
libs/sdl/sdl/Event.hx

@@ -1,6 +1,6 @@
 package sdl;
 
-class Event {
+@:keep class Event {
 	public var type : EventType;
 	public var mouseX : Int;
 	public var mouseY : Int;