mirror of
https://github.com/azahar-emu/azahar.git
synced 2026-06-06 10:43: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
02d7b33b57
commit
ddfc28e593
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);
|
||||
|
||||
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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue