mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-15 16:16:08 +00:00
Remove blendEnabled in BlendStateDescriptor, in order to match web idl
BUG=dawn:32 Change-Id: I7225d919ca1a9c1c848050ad3b9e8832725f0af6 Reviewed-on: https://dawn-review.googlesource.com/c/4460 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
393d555a0e
commit
5987c4e839
@@ -91,7 +91,7 @@ namespace dawn_native { namespace opengl {
|
||||
}
|
||||
|
||||
void ApplyBlendState(uint32_t attachment, const BlendStateDescriptor* descriptor) {
|
||||
if (descriptor->blendEnabled) {
|
||||
if (BlendEnabled(descriptor)) {
|
||||
glEnablei(GL_BLEND, attachment);
|
||||
glBlendEquationSeparatei(attachment, GLBlendMode(descriptor->colorBlend.operation),
|
||||
GLBlendMode(descriptor->alphaBlend.operation));
|
||||
|
||||
Reference in New Issue
Block a user