Make GL & Vk backends create uninitialized backend textures
We want the non-color, non-pixel-data version of createBackendTexture to truly create uninitialized textures.
Change-Id: I08867508ea181b7ba3685638cc7a3ea11d527a24
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/218396
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
index f145754..f5cbb53 100644
--- a/src/gpu/GrContext.cpp
+++ b/src/gpu/GrContext.cpp
@@ -335,7 +335,7 @@
return fGpu->createBackendTexture(width, height, backendFormat,
mipMapped, renderable,
- nullptr, 0);
+ nullptr, 0, nullptr);
}
GrBackendTexture GrContext::createBackendTexture(int width, int height,
@@ -377,7 +377,7 @@
return fGpu->createBackendTexture(width, height, backendFormat,
mipMapped, renderable,
- nullptr, 0, color);
+ nullptr, 0, &color);
}
GrBackendTexture GrContext::createBackendTexture(int width, int height,