Permalink
Browse files

Fix #650, glIsEnabled not returning value

  • Loading branch information...
1 parent b4cbeeb commit e9d1180333f70d1646281b5feb449491932bd4c6 @phoboslab committed Oct 17, 2016
Showing with 4 additions and 2 deletions.
  1. +4 −2 Source/Ejecta/EJCanvas/WebGL/EJBindingCanvasContextWebGL.m
@@ -1233,8 +1233,10 @@ - (void)deleteVertexArray:(GLuint)vertexArray {
#undef EJ_BIND_IS_OBJECT
-
-EJ_BIND_FUNCTION_DIRECT(isEnabled, glIsEnabled, cap);
+EJ_BIND_FUNCTION(isEnabled, ctx, argc, argv) {
+ EJ_UNPACK_ARGV(GLenum cap);
+ return JSValueMakeBoolean(ctx, glIsEnabled(cap));
+}
EJ_BIND_FUNCTION(isTexture, ctx, argc, argv) {
if( argc < 1 ) { return NULL; }

0 comments on commit e9d1180

Please sign in to comment.