Skip to content

Commit ff3dfcc

Browse files
committed
Fix #650, glIsEnabled not returning value
1 parent 5383442 commit ff3dfcc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Source/Ejecta/EJCanvas/WebGL/EJBindingCanvasContextWebGL.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1240,7 +1240,10 @@ - (void)deleteVertexArray:(GLuint)vertexArray {
12401240
#undef EJ_BIND_IS_OBJECT
12411241

12421242

1243-
EJ_BIND_FUNCTION_DIRECT(isEnabled, glIsEnabled, cap);
1243+
EJ_BIND_FUNCTION(isEnabled, ctx, argc, argv) {
1244+
EJ_UNPACK_ARGV(GLenum cap);
1245+
return JSValueMakeBoolean(ctx, glIsEnabled(cap));
1246+
}
12441247

12451248
EJ_BIND_FUNCTION(isTexture, ctx, argc, argv) {
12461249
if( argc < 1 ) { return NULL; }

0 commit comments

Comments
 (0)