mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-16 11:48:36 +12:00
gl: Avoid issuing glDelete calls with m_id == GL_NONE
Applies GL_NONE macro usage where it makes sense
This commit is contained in:
parent
d4333788e2
commit
3ad12cf5f8
2 changed files with 57 additions and 27 deletions
|
@ -202,13 +202,16 @@ namespace gl
|
|||
|
||||
void fbo::remove()
|
||||
{
|
||||
glDeleteFramebuffers(1, &m_id);
|
||||
m_id = 0;
|
||||
if (m_id != GL_NONE)
|
||||
{
|
||||
glDeleteFramebuffers(1, &m_id);
|
||||
m_id = GL_NONE;
|
||||
}
|
||||
}
|
||||
|
||||
bool fbo::created() const
|
||||
{
|
||||
return m_id != 0;
|
||||
return m_id != GL_NONE;
|
||||
}
|
||||
|
||||
bool fbo::check() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue