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

LibGL: Synchronize device config before rendering if anything changed

This commit is contained in:
Stephan Unverwerth 2021-12-22 22:02:57 +01:00 committed by Brian Gianforcaro
parent 39545d4b49
commit f69de5e850
2 changed files with 139 additions and 0 deletions

View file

@ -131,6 +131,10 @@ public:
virtual void gl_copy_tex_image_2d(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) override;
virtual void present() override;
private:
void sync_device_config();
void sync_device_sampler_config();
private:
template<typename T>
T* store_in_listing(T value)
@ -234,6 +238,7 @@ private:
TextureUnit::BoundList m_bound_texture_units;
SoftGPU::Device m_rasterizer;
bool m_sampler_config_is_dirty { true };
struct Listing {