From 69a001a5c3cb706e5a41b1e3d07b5ae5b9af4064 Mon Sep 17 00:00:00 2001 From: Swung0x48 Date: Tue, 28 Jan 2025 23:28:29 +0800 Subject: [PATCH] fix: glBufferData & glFenceSync --- src/main/cpp/gl/gl_native.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/cpp/gl/gl_native.c b/src/main/cpp/gl/gl_native.c index ef9e2cf..6adc481 100644 --- a/src/main/cpp/gl/gl_native.c +++ b/src/main/cpp/gl/gl_native.c @@ -898,7 +898,7 @@ NATIVE_FUNCTION_HEAD(void,glGetQueryObjectuiv,GLuint id, GLenum pname, GLuint* p NATIVE_FUNCTION_HEAD(void,glDeleteBuffers,GLsizei n, const GLuint* buffers); NATIVE_FUNCTION_END_NO_RETURN(void,glDeleteBuffers,n,buffers) NATIVE_FUNCTION_HEAD(void,glGenBuffers,GLsizei n, GLuint* buffers); NATIVE_FUNCTION_END_NO_RETURN(void,glGenBuffers,n,buffers) NATIVE_FUNCTION_HEAD(GLboolean,glIsBuffer,GLuint buffer); NATIVE_FUNCTION_END_NO_RETURN(GLboolean,glIsBuffer,buffer) -//NATIVE_FUNCTION_HEAD(void,glBufferData,GLenum target, GLsizeiptr size, const void* data, GLenum usage); NATIVE_FUNCTION_END_NO_RETURN(void,glBufferData,target,size,data,usage) +NATIVE_FUNCTION_HEAD(void,glBufferData,GLenum target, GLsizeiptr size, const void* data, GLenum usage); NATIVE_FUNCTION_END_NO_RETURN(void,glBufferData,target,size,data,usage) NATIVE_FUNCTION_HEAD(void,glBufferSubData,GLenum target, GLintptr offset, GLsizeiptr size, const void* data); NATIVE_FUNCTION_END_NO_RETURN(void,glBufferSubData,target,offset,size,data) NATIVE_FUNCTION_HEAD(void,glGetBufferSubData,GLenum target, GLintptr offset, GLsizeiptr size, void* data); NATIVE_FUNCTION_END_NO_RETURN(void,glGetBufferSubData,target,offset,size,data) //NATIVE_FUNCTION_HEAD(GLboolean,glUnmapBuffer,GLenum target); NATIVE_FUNCTION_END_NO_RETURN(GLboolean,glUnmapBuffer,target) @@ -1001,7 +1001,7 @@ NATIVE_FUNCTION_HEAD(void,glDrawRangeElementsBaseVertex,GLenum mode, GLuint star NATIVE_FUNCTION_HEAD(void,glDrawElementsInstancedBaseVertex,GLenum mode, GLsizei count, GLenum type, const void* indices, GLsizei instancecount, GLint basevertex); NATIVE_FUNCTION_END_NO_RETURN(void,glDrawElementsInstancedBaseVertex,mode,count,type,indices,instancecount,basevertex) NATIVE_FUNCTION_HEAD(void,glMultiDrawElementsBaseVertex,GLenum mode, const GLsizei* count, GLenum type, const void* const*indices, GLsizei drawcount, const GLint* basevertex); NATIVE_FUNCTION_END_NO_RETURN(void,glMultiDrawElementsBaseVertex,mode,count,type,indices,drawcount,basevertex) NATIVE_FUNCTION_HEAD(void,glProvokingVertex,GLenum mode); NATIVE_FUNCTION_END_NO_RETURN(void,glProvokingVertex,mode) -NATIVE_FUNCTION_HEAD(GLsync,glFenceSync,GLenum condition, GLbitfield flags); NATIVE_FUNCTION_END_NO_RETURN(GLsync,glFenceSync,condition,flags) +NATIVE_FUNCTION_HEAD(GLsync,glFenceSync,GLenum condition, GLbitfield flags); NATIVE_FUNCTION_END(GLsync,glFenceSync,condition,flags) NATIVE_FUNCTION_HEAD(GLboolean,glIsSync,GLsync sync); NATIVE_FUNCTION_END_NO_RETURN(GLboolean,glIsSync,sync) NATIVE_FUNCTION_HEAD(void,glDeleteSync,GLsync sync); NATIVE_FUNCTION_END_NO_RETURN(void,glDeleteSync,sync) NATIVE_FUNCTION_HEAD(GLenum,glClientWaitSync,GLsync sync, GLbitfield flags, GLuint64 timeout); NATIVE_FUNCTION_END_NO_RETURN(GLenum,glClientWaitSync,sync,flags,timeout)