Forgot some EXT functions

This commit is contained in:
Jonas Kulla 2013-09-07 02:41:37 +02:00
parent f87f231129
commit 4620901002
1 changed files with 4 additions and 4 deletions

View File

@ -125,19 +125,19 @@ namespace RBO
inline ID gen()
{
ID id;
glGenRenderbuffers(1, &id.gl);
glGenRenderbuffersEXT(1, &id.gl);
return id;
}
inline void del(ID id)
{
glDeleteRenderbuffers(1, &id.gl);
glDeleteRenderbuffersEXT(1, &id.gl);
}
inline void bind(ID id)
{
glBindRenderbuffer(GL_RENDERBUFFER, id.gl);
glBindRenderbufferEXT(GL_RENDERBUFFER_EXT, id.gl);
}
inline void unbind()
@ -147,7 +147,7 @@ namespace RBO
inline void allocEmpty(GLsizei width, GLsizei height)
{
glRenderbufferStorage(GL_RENDERBUFFER, GL_RGBA8, width, height);
glRenderbufferStorageEXT(GL_RENDERBUFFER_EXT, GL_RGBA8, width, height);
}
}