File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Sources/Rendering/OpenGL/Renderer Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,11 @@ function vtkOpenGLRenderer(publicAPI, model) {
65
65
gl . depthMask ( true ) ;
66
66
}
67
67
68
+ const ts = publicAPI . getTiledSizeAndOrigin ( ) ;
69
+ gl . enable ( gl . SCISSOR_TEST ) ;
70
+ gl . scissor ( ts . lowerLeftU , ts . lowerLeftV , ts . usize , ts . vsize ) ;
71
+ gl . viewport ( ts . lowerLeftU , ts . lowerLeftV , ts . usize , ts . vsize ) ;
72
+
68
73
gl . colorMask ( true , true , true , true ) ;
69
74
gl . clear ( clearMask ) ;
70
75
@@ -160,6 +165,7 @@ function vtkOpenGLRenderer(publicAPI, model) {
160
165
const ts = publicAPI . getTiledSizeAndOrigin ( ) ;
161
166
gl . enable ( gl . SCISSOR_TEST ) ;
162
167
gl . scissor ( ts . lowerLeftU , ts . lowerLeftV , ts . usize , ts . vsize ) ;
168
+ gl . viewport ( ts . lowerLeftU , ts . lowerLeftV , ts . usize , ts . vsize ) ;
163
169
164
170
gl . clear ( clearMask ) ;
165
171
You can’t perform that action at this time.
0 commit comments