mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
c/client: Replace glTextureStorageMem2DEXT
with glTexStorageMem2DEXT
This commit is contained in:
parent
d232e73587
commit
c5cf26f385
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue