@@ -1149,9 +1149,10 @@ var LibraryGL = {
1149
1149
GLctx . pixelStorei ( pname , param ) ;
1150
1150
} ,
1151
1151
1152
- glGetString__sig : 'ii ' ,
1152
+ glGetString__sig : 'pi ' ,
1153
1153
glGetString__deps : [ '$stringToNewUTF8' ] ,
1154
1154
glGetString : function ( name_ ) {
1155
+ err ( 'glGetString' ) ;
1155
1156
var ret = GL . stringCache [ name_ ] ;
1156
1157
if ( ! ret ) {
1157
1158
switch ( name_ ) {
@@ -1400,25 +1401,25 @@ var LibraryGL = {
1400
1401
}
1401
1402
} ,
1402
1403
1403
- glGetIntegerv__sig : 'vii ',
1404
+ glGetIntegerv__sig : 'vip ',
1404
1405
glGetIntegerv__deps : [ '$emscriptenWebGLGet' ] ,
1405
1406
glGetIntegerv : function ( name_ , p ) {
1406
1407
emscriptenWebGLGet ( name_ , p , { { { cDefine ( 'EM_FUNC_SIG_PARAM_I' ) } } } ) ;
1407
1408
} ,
1408
1409
1409
- glGetFloatv__sig : 'vii ' ,
1410
+ glGetFloatv__sig : 'vip ' ,
1410
1411
glGetFloatv__deps : [ '$emscriptenWebGLGet' ] ,
1411
1412
glGetFloatv : function ( name_ , p ) {
1412
1413
emscriptenWebGLGet ( name_ , p , { { { cDefine ( 'EM_FUNC_SIG_PARAM_F' ) } } } ) ;
1413
1414
} ,
1414
1415
1415
- glGetBooleanv__sig : 'vii ' ,
1416
+ glGetBooleanv__sig : 'vip ' ,
1416
1417
glGetBooleanv__deps : [ '$emscriptenWebGLGet' ] ,
1417
1418
glGetBooleanv : function ( name_ , p ) {
1418
1419
emscriptenWebGLGet ( name_ , p , { { { cDefine ( 'EM_FUNC_SIG_PARAM_B' ) } } } ) ;
1419
1420
} ,
1420
1421
1421
- glDeleteTextures__sig : 'vii ' ,
1422
+ glDeleteTextures__sig : 'vip ' ,
1422
1423
glDeleteTextures : function ( n , textures ) {
1423
1424
for ( var i = 0 ; i < n ; i ++ ) {
1424
1425
var id = { { { makeGetValue ( 'textures' , 'i*4' , 'i32' ) } } } ;
@@ -1430,7 +1431,7 @@ var LibraryGL = {
1430
1431
}
1431
1432
} ,
1432
1433
1433
- glCompressedTexImage2D__sig : 'viiiiiiii ' ,
1434
+ glCompressedTexImage2D__sig : 'viiiiiiip ' ,
1434
1435
glCompressedTexImage2D : function ( target , level , internalFormat , width , height , border , imageSize , data ) {
1435
1436
#if MAX_WEBGL_VERSION >= 2
1436
1437
if ( { { { isCurrentContextWebGL2( ) } } } ) { // WebGL 2 provides new garbage-free entry points to call to WebGL. Use those always when possible.
@@ -1633,7 +1634,7 @@ var LibraryGL = {
1633
1634
GLctx . bindTexture ( target , GL . textures [ texture ] ) ;
1634
1635
} ,
1635
1636
1636
- glGetTexParameterfv__sig : 'viii ',
1637
+ glGetTexParameterfv__sig : 'viip ',
1637
1638
glGetTexParameterfv : function ( target , pname , params ) {
1638
1639
if ( ! params ) {
1639
1640
// GLES2 specification does not specify how to behave if params is a null pointer. Since calling this function does not make sense
@@ -1647,7 +1648,7 @@ var LibraryGL = {
1647
1648
{ { { makeSetValue ( 'params' , '0' , 'GLctx.getTexParameter(target, pname)' , 'float' ) } } } ;
1648
1649
} ,
1649
1650
1650
- glGetTexParameteriv__sig : 'viii ',
1651
+ glGetTexParameteriv__sig : 'viip ',
1651
1652
glGetTexParameteriv : function ( target , pname , params ) {
1652
1653
if ( ! params ) {
1653
1654
// GLES2 specification does not specify how to behave if params is a null pointer. Since calling this function does not make sense
@@ -1684,7 +1685,6 @@ var LibraryGL = {
1684
1685
// merge the functions together to only have one generated copy of this. 'createFunction' refers to the WebGL context function name to do
1685
1686
// the actual creation, 'objectTable' points to the GL object table where to populate the created objects, and 'functionName' carries
1686
1687
// the name of the caller for debug information.
1687
- _glGenObject__sig : 'vii ',
1688
1688
_glGenObject : function ( n , buffers , createFunction , objectTable
1689
1689
#if GL_ASSERTIONS
1690
1690
, functionName
@@ -1707,7 +1707,7 @@ var LibraryGL = {
1707
1707
} ,
1708
1708
1709
1709
glGenBuffers__deps : [ '_glGenObject' ] ,
1710
- glGenBuffers__sig : 'vii ' ,
1710
+ glGenBuffers__sig : 'vip ' ,
1711
1711
glGenBuffers : function ( n , buffers ) {
1712
1712
__glGenObject ( n , buffers , 'createBuffer' , GL . buffers
1713
1713
#if GL_ASSERTIONS
@@ -1717,7 +1717,7 @@ var LibraryGL = {
1717
1717
} ,
1718
1718
1719
1719
glGenTextures__deps : [ '_glGenObject' ] ,
1720
- glGenTextures__sig : 'vii ' ,
1720
+ glGenTextures__sig : 'vip ' ,
1721
1721
glGenTextures : function ( n , textures ) {
1722
1722
__glGenObject ( n , textures , 'createTexture' , GL . textures
1723
1723
#if GL_ASSERTIONS
@@ -1726,7 +1726,7 @@ var LibraryGL = {
1726
1726
) ;
1727
1727
} ,
1728
1728
1729
- glDeleteBuffers__sig : 'vii ' ,
1729
+ glDeleteBuffers__sig : 'vip ' ,
1730
1730
glDeleteBuffers : function ( n , buffers ) {
1731
1731
for ( var i = 0 ; i < n ; i ++ ) {
1732
1732
var id = { { { makeGetValue ( 'buffers' , 'i*4' , 'i32' ) } } } ;
@@ -3615,7 +3615,7 @@ var LibraryGL = {
3615
3615
GL . textures [ texture ] , level ) ;
3616
3616
} ,
3617
3617
3618
- glGetFramebufferAttachmentParameteriv__sig : 'viiii ',
3618
+ glGetFramebufferAttachmentParameteriv__sig : 'viiip ',
3619
3619
glGetFramebufferAttachmentParameteriv : function ( target , attachment , pname , params ) {
3620
3620
var result = GLctx . getFramebufferAttachmentParameter ( target , attachment , pname ) ;
3621
3621
if ( result instanceof WebGLRenderbuffer ||
@@ -4059,7 +4059,7 @@ var LibraryGL = {
4059
4059
return mem ;
4060
4060
} ,
4061
4061
4062
- glGetBufferPointerv__sig : 'viii ',
4062
+ glGetBufferPointerv__sig : 'viip ',
4063
4063
glGetBufferPointerv__deps : [ '$emscriptenWebGLGetBufferBinding' ] ,
4064
4064
glGetBufferPointerv : function ( target , pname , params ) {
4065
4065
if ( pname == 0x88BD /*GL_BUFFER_MAP_POINTER*/ ) {
0 commit comments