diff options
Diffstat (limited to 'o3d/core/cross/canvas.cc')
-rw-r--r-- | o3d/core/cross/canvas.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/o3d/core/cross/canvas.cc b/o3d/core/cross/canvas.cc index 0484e33..a2aa30d 100644 --- a/o3d/core/cross/canvas.cc +++ b/o3d/core/cross/canvas.cc @@ -161,7 +161,7 @@ void Canvas::DrawBitmap(Texture2D* texture2d, return; } - Texture2D::LockHelper lock_helper(texture2d, 0); + Texture2D::LockHelper lock_helper(texture2d, 0, Texture::kWriteOnly); uint8* texture_data = lock_helper.GetDataAs<uint8>(); if (!texture_data) { return; |