瀏覽代碼

minor fixes

Nicolas Cannasse 9 年之前
父節點
當前提交
9eb9d0d050
共有 2 個文件被更改,包括 2 次插入2 次删除
  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;