Home
last modified time | relevance | path

Searched refs:contextAttributes (Results 1 – 1 of 1) sorted by relevance

/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/src/
H A Dwebgl2_rendering_context_override.cpp214 auto contextAttributes = webGLRenderingContext_->CreateWebGlContextAttributes(); in GetFrameBufferAttachmentParameterForDefault() local
215 if (contextAttributes == nullptr) { in GetFrameBufferAttachmentParameterForDefault()
218 if ((attachment == GL_DEPTH && !contextAttributes->depth_) || in GetFrameBufferAttachmentParameterForDefault()
219 (attachment == GL_STENCIL && !contextAttributes->stencil_)) { in GetFrameBufferAttachmentParameterForDefault()
237 … GLint value = (attachment == GL_BACK && contextAttributes->alpha_) ? 8 : 0; // 8 ALPHA size in GetFrameBufferAttachmentParameterForDefault()