Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,13 @@ private boolean recreate(
try {
drainStaleGlErrors();
memoryObject = glCreateMemoryObjectsEXT();
// The runtime's shared images are dedicated allocations, and
// EXT_external_objects requires an importer of one to set this
// flag. It must precede the import, which fixes the memory
// object's parameters.
glMemoryObjectParameteriEXT(
memoryObject, GL_DEDICATED_MEMORY_OBJECT_EXT, GL_TRUE);
checkGlError("glMemoryObjectParameteriEXT(" + debugName + ")");
glImportMemoryWin32HandleEXT(
memoryObject,
allocationSize,
Expand Down