mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-05 17:16:04 +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:
parent
9627576d9c
commit
bc17a87450
Notes:
sideshowbarker
2024-07-17 20:38:58 +09:00
Author: https://github.com/sunverwerth
Commit: bc17a87450
Pull-request: https://github.com/SerenityOS/serenity/pull/11927
Reviewed-by: https://github.com/IdanHo
Reviewed-by: https://github.com/Quaker762 ✅
Reviewed-by: https://github.com/gmta ✅
2 changed files with 4 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue