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:
parent
39545d4b49
commit
f69de5e850
2 changed files with 139 additions and 0 deletions
|
@ -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 {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue