mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 00:22:43 +08:00
fix alpha blending error (#4716)
This commit is contained in:
@@ -200,7 +200,7 @@ export class WebGLGFXDevice extends GFXDevice {
|
||||
|
||||
try {
|
||||
const webGLCtxAttribs: WebGLContextAttributes = {
|
||||
alpha: true,
|
||||
alpha: false,
|
||||
antialias: this._isAntialias,
|
||||
depth: true,
|
||||
stencil: true,
|
||||
|
||||
@@ -134,7 +134,7 @@ export class WebGL2GFXDevice extends GFXDevice {
|
||||
|
||||
try {
|
||||
const webGLCtxAttribs: WebGLContextAttributes = {
|
||||
alpha: true,
|
||||
alpha: false,
|
||||
antialias: this._isAntialias,
|
||||
depth: true,
|
||||
stencil: true,
|
||||
|
||||
Reference in New Issue
Block a user