mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-06-06 23:25:02 -06:00
gl: Silence warnings
This commit is contained in:
parent
302e87c920
commit
5f6822042d
@ -87,7 +87,7 @@ namespace gl
|
|||||||
void set_name(std::string_view name)
|
void set_name(std::string_view name)
|
||||||
{
|
{
|
||||||
m_name = name.data();
|
m_name = name.data();
|
||||||
glObjectLabel(Ns, m_id, name.length(), name.data());
|
glObjectLabel(Ns, m_id, static_cast<GLsizei>(name.length()), name.data());
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string_view name() const
|
std::string_view name() const
|
||||||
@ -97,9 +97,9 @@ namespace gl
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Very useful util when capturing traces with RenderDoc
|
// Very useful util when capturing traces with RenderDoc
|
||||||
static inline void push_debug_label(const char* label)
|
static inline void push_debug_label(std::string_view label)
|
||||||
{
|
{
|
||||||
glInsertEventMarkerEXT(static_cast<GLsizei>(strlen(label)), label);
|
glInsertEventMarkerEXT(static_cast<GLsizei>(label.size()), label.data());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Checks if GL state is still valid
|
// Checks if GL state is still valid
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user