Fix for OpenAL debug builds.
Added alternate methods for NV_fence.
This commit is contained in:
parent
2c35779129
commit
e61f005051
|
@ -166,7 +166,9 @@ public class Utils {
|
|||
return null;
|
||||
}
|
||||
|
||||
// DISABLED: We always generate indirect methods. (affects OpenAL only at the time of this change)
|
||||
public static boolean isMethodIndirect(boolean generate_error_checks, boolean context_specific, MethodDeclaration method) {
|
||||
/*
|
||||
for (ParameterDeclaration param : method.getParameters()) {
|
||||
if (isAddressableType(param.getType()) || getParameterAutoAnnotation(param) != null ||
|
||||
param.getAnnotation(Constant.class) != null)
|
||||
|
@ -176,6 +178,8 @@ public class Utils {
|
|||
method.getAnnotation(CachedResult.class) != null ||
|
||||
(generate_error_checks && method.getAnnotation(NoErrorCheck.class) == null) ||
|
||||
context_specific;
|
||||
*/
|
||||
return true;
|
||||
}
|
||||
|
||||
public static String getNativeQualifiedName(String qualified_name) {
|
||||
|
|
|
@ -42,8 +42,15 @@ public interface NV_fence {
|
|||
|
||||
void glGenFencesNV(@AutoSize("piFences") @GLsizei int n, @OutParameter @GLuint IntBuffer piFences);
|
||||
|
||||
@Alternate("glGenFencesNV")
|
||||
@GLreturn("piFences")
|
||||
void glGenFencesNV2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer piFences);
|
||||
|
||||
void glDeleteFencesNV(@AutoSize("piFences") @GLsizei int n, @Const @GLuint IntBuffer piFences);
|
||||
|
||||
@Alternate("glDeleteFencesNV")
|
||||
void glDeleteFencesNV(@Constant("1") @GLsizei int n, @Const @GLuint @Constant(value = "APIUtils.getBufferInt().put(0, fence), 0", keepParam = true) int fence);
|
||||
|
||||
void glSetFenceNV(@GLuint int fence, @GLenum int condition);
|
||||
|
||||
boolean glTestFenceNV(@GLuint int fence);
|
||||
|
|
Loading…
Reference in New Issue