Skip to content

Commit

Permalink
more extensions for draw buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
meeees committed Jan 1, 2020
1 parent a9ef95e commit 9826f9a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webgl/webgl.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ function main() {
dContext.fillText('Your browser no like webgl, use better browser', 10, 10);
}

bufferExt = gl.getExtension('WEBGL_draw_buffers');
bufferExt = bufferExt = gl.getExtension('WEBGL_draw_buffers') ||
gl.getExtension("GL_EXT_draw_buffers") ||
gl.getExtension("EXT_draw_buffers");

shaderInfo = initPrograms(gl);
buffers = Voxel.initBuffers(gl);
Expand Down

0 comments on commit 9826f9a

Please sign in to comment.