diff options
Diffstat (limited to 'src/adaptationlayers/adaptationlayer.h')
-rw-r--r-- | src/adaptationlayers/adaptationlayer.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/adaptationlayers/adaptationlayer.h b/src/adaptationlayers/adaptationlayer.h index abe4d1a..e43571b 100644 --- a/src/adaptationlayers/adaptationlayer.h +++ b/src/adaptationlayers/adaptationlayer.h @@ -159,6 +159,14 @@ public: void setMipmaps(bool mipmapped) { m_mipmap = mipmapped; } bool hasMipmaps() const { return m_mipmap; } + /* + ### gunnar: the texture reference is potentially written to in a thread + while uploading, so ANY access to the other accessors is strictly not + allowed until status returns Uploaded. + To support fetching and writing status from multiple threads, which I'm + unsure if will happen, we should change status to be an QAtomicInt + */ + void setStatus(Status s); Status status() const { return m_status; } |