c/client: Replace glTextureStorageMem2DEXT with glTexStorageMem2DEXT

This commit is contained in:
zhz 2024-04-16 13:47:22 +08:00 committed by Simon Zeni
parent d232e73587
commit c5cf26f385

View file

@ -137,11 +137,11 @@ client_gl_memobj_swapchain_create(struct xrt_compositor *xc,
xscn->images[i].handle = XRT_GRAPHICS_BUFFER_HANDLE_INVALID; xscn->images[i].handle = XRT_GRAPHICS_BUFFER_HANDLE_INVALID;
if (info->array_size == 1) { if (info->array_size == 1) {
glTextureStorageMem2DEXT(xscgl->images[i], info->mip_count, (GLuint)info->format, info->width, glTexStorageMem2DEXT(tex_target, info->mip_count, (GLuint)info->format, info->width,
info->height, sc->memory[i], 0); info->height, sc->memory[i], 0);
} else { } else {
glTextureStorageMem3DEXT(xscgl->images[i], info->mip_count, (GLuint)info->format, info->width, glTexStorageMem3DEXT(tex_target, info->mip_count, (GLuint)info->format, info->width,
info->height, info->array_size, sc->memory[i], 0); info->height, info->array_size, sc->memory[i], 0);
} }
} }