mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
TODO: GL_UNPACK_FLIP_Y_WEBGL, GL_UNPACK_PREMULTIPLY_ALPHA_WEBGL
This commit is contained in:
@@ -1303,6 +1303,18 @@ bool JSB_glPixelStorei(se::State& s) {
|
||||
ok &= seval_to_int32(args[1], &arg1 );
|
||||
SE_PRECONDITION2(ok, false, "Error processing arguments");
|
||||
|
||||
if (arg0 == GL_UNPACK_FLIP_Y_WEBGL)
|
||||
{
|
||||
SE_LOGE("cjh FIXME: support GL_UNPACK_FLIP_Y_WEBGL\n");
|
||||
return true;
|
||||
}
|
||||
|
||||
if (arg0 == GL_UNPACK_PREMULTIPLY_ALPHA_WEBGL)
|
||||
{
|
||||
SE_LOGE("cjh FIXME: support GL_UNPACK_PREMULTIPLY_ALPHA_WEBGL\n");
|
||||
return true;
|
||||
}
|
||||
|
||||
JSB_GL_CHECK(glPixelStorei((GLenum)arg0 , (GLint)arg1 ));
|
||||
s.rval().setUndefined();
|
||||
return true;
|
||||
|
||||
@@ -154,3 +154,4 @@ SE_DECLARE_FUNC(JSB_glVertexAttrib4fv);
|
||||
SE_DECLARE_FUNC(JSB_glVertexAttribPointer);
|
||||
SE_DECLARE_FUNC(JSB_glViewport);
|
||||
SE_DECLARE_FUNC(JSB_glGetParameter);
|
||||
SE_DECLARE_FUNC(JSB_glGetShaderPrecisionFormat);
|
||||
|
||||
Reference in New Issue
Block a user