]> git.tdb.fi Git - libs/gl.git/commit
Store simpler states by value in PipelineState
authorMikko Rasa <tdb@tdb.fi>
Wed, 12 Jan 2022 20:24:54 +0000 (22:24 +0200)
committerMikko Rasa <tdb@tdb.fi>
Wed, 12 Jan 2022 20:24:54 +0000 (22:24 +0200)
commit016f0f0dd51511f98d0bf398d99199d7dec1543c
tree88ea582b0b1345c3e354872b7677158d23a6c728
parent511579d9ad9337bc3db1da1a486b3692d1c5cf1e
Store simpler states by value in PipelineState

Since these are also stored by value in various objects, a pointer
comparison is not enough to tell if state needs to be changed.  There's
no guarantee that the object behind the pointer stays alive, so comparing
values through the pointer is hazardous.
12 files changed:
source/backends/opengl/pipelinestate_backend.cpp
source/backends/vulkan/commands_backend.cpp
source/backends/vulkan/commands_backend.h
source/backends/vulkan/pipelinestate_backend.cpp
source/core/blend.h
source/core/depthtest.h
source/core/framebuffer.h
source/core/pipelinestate.cpp
source/core/pipelinestate.h
source/core/rect.h
source/core/stenciltest.h
source/render/renderer.cpp