mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-14 07:36:15 +00:00
Add bufferOffset to CopyBufferToTexture.
This commit is contained in:
committed by
Corentin Wallez
parent
a2d4d14bd4
commit
7f433a5b52
@@ -74,7 +74,8 @@ namespace opengl {
|
||||
glBindTexture(target, texture->GetHandle());
|
||||
|
||||
glTexSubImage2D(target, copy->level, copy->x, copy->y, copy->width, copy->height,
|
||||
format.format, format.type, nullptr);
|
||||
format.format, format.type,
|
||||
reinterpret_cast<void*>(static_cast<uintptr_t>(copy->bufferOffset)));
|
||||
glBindBuffer(GL_PIXEL_UNPACK_BUFFER, 0);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user