Skip to content

Commit

Permalink
tiny fix
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Jan 5, 2024
1 parent b7c1767 commit 01704c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webgpu/format_info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1942,7 +1942,7 @@ export function isTextureFormatUsableAsStorageFormat(
isCompatibilityMode: boolean
) {
if (isCompatibilityMode) {
if (kCompatModeUnsupportedStorageTextureFormats.indexOf(format)) {
if (kCompatModeUnsupportedStorageTextureFormats.indexOf(format) >= 0) {
return false;
}
}
Expand Down

0 comments on commit 01704c2

Please sign in to comment.