File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -373,11 +373,11 @@ export default class Deck<ViewsT extends ViewOrViews = null> {
373373 const userOnResize = this . props . deviceProps ?. onResize ;
374374
375375 deviceOrPromise = webgl2Adapter . attach ( props . gl , {
376- ...this . props . deviceProps ,
377376 // Enable shader and pipeline caching for attached devices (matches _createDevice defaults)
378377 // Without this, interleaved mode (e.g., MapboxOverlay) creates new pipelines every frame
379378 _cacheShaders : true ,
380379 _cachePipelines : true ,
380+ ...this . props . deviceProps ,
381381 onResize : ( canvasContext , info ) => {
382382 // Manually sync drawing buffer dimensions (canvas is externally managed)
383383 // TODO(v9.3): Use canvasContext.setDrawingBufferSize(width, height) when upgrading to luma 9.3+
@@ -863,9 +863,9 @@ export default class Deck<ViewsT extends ViewOrViews = null> {
863863 // This behavior is expected to change in deck.gl v10 to support WebGPU only builds.
864864 const deviceProps = {
865865 adapters : [ ] ,
866- ...props . deviceProps ,
867866 _cacheShaders : true ,
868- _cachePipelines : true
867+ _cachePipelines : true ,
868+ ...props . deviceProps
869869 } ;
870870 if ( ! deviceProps . adapters . includes ( webgl2Adapter ) ) {
871871 deviceProps . adapters . push ( webgl2Adapter ) ;
You can’t perform that action at this time.
0 commit comments