mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
7667b00f87
* Less opengl binding files. * recreateBuffer in CanvasRendereringContext2D constructor. * gl.bindFrameBuffer(gl.FRAME_BUFFER, null) needs to set to default frame buffer . * Fixes JSB_glGetActiveUniform use GL_ACTIVE_ATTRIBUTE_MAX_LENGTH to get the max length, we need to use GL_ACTIVE_UNIFORM_MAX_LENGTH instead. * glBufferSubData supports typedarray with 0 length. Adds more API for CanvasRenderingContext2D.