Skip to content

Conversation

@Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Mar 10, 2021

Related issue: -

Description

The default dimensions of the viewport and scissor box are the width and height of the canvas.

initGLContext() performs a redundant state configuration right after creating WebGLState. Instead of doing this, one can setup the cached scissor and viewport variables in WebGLState with the true defaults to achieve the same internal state as before.

@mrdoob mrdoob added this to the r127 milestone Mar 10, 2021
@mrdoob mrdoob merged commit f5c6b1c into mrdoob:dev Mar 10, 2021
@mrdoob
Copy link
Owner

mrdoob commented Mar 10, 2021

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants