mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 00:22:43 +08:00
fix editor scene window is black before scene loaded (#6059)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { macro } from '../../platform';
|
||||
import sys from '../../platform/sys';
|
||||
import { GFXBindingLayout, IGFXBindingLayoutInfo } from '../binding-layout';
|
||||
import { GFXBuffer, IGFXBufferInfo } from '../buffer';
|
||||
@@ -201,7 +202,7 @@ export class WebGLGFXDevice extends GFXDevice {
|
||||
|
||||
try {
|
||||
const webGLCtxAttribs: WebGLContextAttributes = {
|
||||
alpha: false,
|
||||
alpha: macro.ENABLE_TRANSPARENT_CANVAS,
|
||||
antialias: this._isAntialias,
|
||||
depth: true,
|
||||
stencil: true,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { macro } from '../../platform';
|
||||
import { GFXBindingLayout, IGFXBindingLayoutInfo } from '../binding-layout';
|
||||
import { GFXBuffer, IGFXBufferInfo } from '../buffer';
|
||||
import { GFXCommandAllocator, IGFXCommandAllocatorInfo } from '../command-allocator';
|
||||
@@ -135,7 +136,7 @@ export class WebGL2GFXDevice extends GFXDevice {
|
||||
|
||||
try {
|
||||
const webGLCtxAttribs: WebGLContextAttributes = {
|
||||
alpha: false,
|
||||
alpha: macro.ENABLE_TRANSPARENT_CANVAS,
|
||||
antialias: this._isAntialias,
|
||||
depth: true,
|
||||
stencil: true,
|
||||
|
||||
Reference in New Issue
Block a user