@@ -329,12 +329,16 @@ HL_PRIM void HL_NAME(gl_tex_image3d)( int target, int level, int internalFormat,
329
329
HL_PRIM void HL_NAME (gl_tex_storage2d )( int target , int levels , int internalFormat , int width , int height ) {
330
330
#ifndef __APPLE__
331
331
glTexStorage2D (target , levels , internalFormat , width , height );
332
+ #else
333
+ hl_error ("glTexStorage2d is not supported on Apple platforms" );
332
334
#endif
333
335
}
334
336
335
337
HL_PRIM void HL_NAME (gl_tex_storage3d )( int target , int levels , int internalFormat , int width , int height , int depth ) {
336
338
#ifndef __APPLE__
337
339
glTexStorage3D (target , levels , internalFormat , width , height , depth );
340
+ #else
341
+ hl_error ("glTexStorage3d is not supported on Apple platforms" );
338
342
#endif
339
343
}
340
344
@@ -663,13 +667,15 @@ HL_PRIM int HL_NAME(gl_get_program_resource_index)( vdynamic *p, int type, vstri
663
667
char * cname = hl_to_utf8 (name -> bytes );
664
668
return (int )glGetProgramResourceIndex (p -> v .i , type , cname );
665
669
#else
666
- return 0 ;
670
+ hl_error ( "glGetProgramResourceIndex is not supported on Apple platforms" ) ;
667
671
#endif
668
672
}
669
673
670
674
HL_PRIM void HL_NAME (gl_shader_storage_block_binding )( vdynamic * p , int index , int binding ) {
671
675
#ifndef __APPLE__
672
676
glShaderStorageBlockBinding (p -> v .i , index , binding );
677
+ #else
678
+ hl_error ("glShaderStorageBlockBinding is not supported on Apple platforms" );
673
679
#endif
674
680
}
675
681
0 commit comments