mirror of
https://github.com/azahar-emu/azahar.git
synced 2026-06-05 18:23:39 -04:00
renderer_gl: Fix MakeHandle string-view hazard
`glObjectLabel` expects a null-terminated string, but an `std::string_view` is not necessarily null-terminated
This commit is contained in:
parent
f01b8fcdcd
commit
5e9b2aa33a
1 changed files with 1 additions and 1 deletions
|
|
@ -112,7 +112,7 @@ static constexpr std::array<FormatTuple, 8> CUSTOM_TUPLES = {{
|
||||||
glTexParameteri(target, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
|
glTexParameteri(target, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
|
||||||
|
|
||||||
if (!debug_name.empty()) {
|
if (!debug_name.empty()) {
|
||||||
glObjectLabel(GL_TEXTURE, texture.handle, -1, debug_name.data());
|
glObjectLabel(GL_TEXTURE, texture.handle, debug_name.size(), debug_name.data());
|
||||||
}
|
}
|
||||||
|
|
||||||
return texture;
|
return texture;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue