1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 04:47:34 +00:00

LibGL: Also track active texture unit index

In addition to tracking a pointer to the active texture unit we also
track its index in the array.
This commit is contained in:
Stephan Unverwerth 2022-01-15 20:31:29 +01:00 committed by Andreas Kling
parent 9627576d9c
commit bc17a87450
2 changed files with 4 additions and 2 deletions

View file

@ -264,6 +264,7 @@ private:
HashMap<GLuint, RefPtr<Texture>> m_allocated_textures;
Vector<TextureUnit> m_texture_units;
TextureUnit* m_active_texture_unit;
size_t m_active_texture_unit_index { 0 };
// Texture coordinate generation state
struct TextureCoordinateGeneration {