mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:17:34 +00:00
LibGL: Implement texture unit texturing states
This commit is contained in:
parent
c7b90fa7d3
commit
5788a139d8
5 changed files with 67 additions and 4 deletions
|
@ -14,8 +14,8 @@ void TextureUnit::bind_texture_to_target(GLenum texture_target, const RefPtr<Tex
|
|||
switch (texture_target) {
|
||||
case GL_TEXTURE_2D:
|
||||
m_texture_target_2d = static_ptr_cast<Texture2D>(texture);
|
||||
m_currently_bound_texture = texture;
|
||||
m_currently_bound_target = GL_TEXTURE_2D;
|
||||
m_currently_bound_texture = texture;
|
||||
break;
|
||||
default:
|
||||
VERIFY_NOT_REACHED();
|
||||
|
@ -27,7 +27,7 @@ void TextureUnit::unbind_texture(GLenum texture_target)
|
|||
switch (texture_target) {
|
||||
case GL_TEXTURE_2D:
|
||||
m_texture_target_2d = nullptr;
|
||||
m_currently_bound_target = 0;
|
||||
m_currently_bound_target = GL_NONE;
|
||||
break;
|
||||
default:
|
||||
VERIFY_NOT_REACHED();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue