Skip to content

Commit

Permalink
Fix mesa after sdl update
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxiaomao committed Feb 2, 2024
1 parent 5406694 commit 1ec580c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions libs/mesa/mesa/GL.hx
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,10 @@ class GL {
public static function bindTexture( t : Int, texture : Texture ) {
}

@:hlNative("?mesa","gl_bind_image_texture")
public static function bindImageTexture( unit : Int, texture : Int, level : Int, layered : Bool, layer : Int, access : Int, format : Int ) {
}

public static function texParameteri( t : Int, key : Int, value : Int ) {
}

Expand Down Expand Up @@ -763,6 +767,20 @@ class GL {
public static inline var TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A;
public static inline var MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C;

/* Image */
public static inline var READ_ONLY = 0x88B8;
public static inline var WRITE_ONLY = 0x88B9;
public static inline var READ_WRITE = 0x88BA;
public static inline var IMAGE_1D = 0x904C;
public static inline var IMAGE_2D = 0x904D;
public static inline var IMAGE_3D = 0x904E;
public static inline var IMAGE_2D_RECT = 0x904F;
public static inline var IMAGE_CUBE = 0x9050;
public static inline var IMAGE_BUFFER = 0x9051;
public static inline var IMAGE_1D_ARRAY = 0x9052;
public static inline var IMAGE_2D_ARRAY = 0x9053;
public static inline var IMAGE_CUBE_MAP_ARRAY = 0x9054;

/* TextureUnit */
public static inline var TEXTURE0 = 0x84C0;
public static inline var TEXTURE1 = 0x84C1;
Expand Down

0 comments on commit 1ec580c

Please sign in to comment.