Browse Source

fixed mesa support

ncannasse 7 years ago
parent
commit
3ce96e2981
1 changed files with 5 additions and 0 deletions
  1. 5 0
      libs/mesa/haxe/System.hx

+ 5 - 0
libs/mesa/haxe/System.hx

@@ -4,6 +4,7 @@ class System {
 
 
 	public static var width = 800;
 	public static var width = 800;
 	public static var height = 600;
 	public static var height = 600;
+	public static var vsync = true;
 
 
 	public static var buffer : haxe.io.Bytes = null;
 	public static var buffer : haxe.io.Bytes = null;
 	public static var ctx : mesa.Context;
 	public static var ctx : mesa.Context;
@@ -32,6 +33,10 @@ class System {
 			throw "Failed to init GL API";
 			throw "Failed to init GL API";
 		return true;
 		return true;
 	}
 	}
+	
+	public static function emitEvents(_) {
+		return true;
+	}
 
 
 	public static function present() {
 	public static function present() {
 	}
 	}