1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 07:04:58 +00:00

LibGL: Implement glActiveTexture

This commit is contained in:
Jesse Buhagiar 2021-05-30 16:56:56 +10:00 committed by Linus Groh
parent 52e5d3c961
commit 573c1c82f7
5 changed files with 51 additions and 0 deletions

View file

@ -1286,6 +1286,13 @@ void SoftwareGLContext::gl_bind_texture(GLenum target, GLuint texture)
}
}
void SoftwareGLContext::gl_active_texture(GLenum texture)
{
RETURN_WITH_ERROR_IF(texture < GL_TEXTURE0 || texture > GL_TEXTURE31, GL_INVALID_ENUM);
m_active_texture_unit = &m_texture_units.at(texture - GL_TEXTURE0);
}
void SoftwareGLContext::present()
{
m_rasterizer.blit_to(*m_frontbuffer);