mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-15 08:06:19 +00:00
Make setBlendColor take in a Color instead of 4 floats
BUG= Change-Id: Ic70d5b664c0ea64c038129cdb83f4ba05fb61830 Reviewed-on: https://dawn-review.googlesource.com/c/4341 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Stephen White <senorblanco@chromium.org> Reviewed-by: Kai Ninomiya <kainino@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
d1be0e7077
commit
00976d0db1
@@ -662,7 +662,7 @@ namespace dawn_native { namespace opengl {
|
||||
|
||||
case Command::SetBlendColor: {
|
||||
SetBlendColorCmd* cmd = mCommands.NextCommand<SetBlendColorCmd>();
|
||||
glBlendColor(cmd->r, cmd->g, cmd->b, cmd->a);
|
||||
glBlendColor(cmd->color.r, cmd->color.g, cmd->color.b, cmd->color.a);
|
||||
} break;
|
||||
|
||||
case Command::SetBindGroup: {
|
||||
|
||||
Reference in New Issue
Block a user