diff options
Diffstat (limited to 'source/gameengine/VideoTexture/Texture.h')
-rw-r--r-- | source/gameengine/VideoTexture/Texture.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/gameengine/VideoTexture/Texture.h b/source/gameengine/VideoTexture/Texture.h index c85b1228864..ae778bae704 100644 --- a/source/gameengine/VideoTexture/Texture.h +++ b/source/gameengine/VideoTexture/Texture.h @@ -43,6 +43,8 @@ #include "Exception.h" +struct ImBuf; + // type Texture declaration struct Texture { @@ -58,6 +60,8 @@ struct Texture // original texture saved bool m_orgSaved; + // kernel image buffer, to make sure the image is loaded before we swap the bindcode + struct ImBuf *m_imgBuf; // texture image for game materials Image * m_imgTexture; // texture for blender materials @@ -67,9 +71,7 @@ struct Texture bool m_mipmap; // scaled image buffer - unsigned int * m_scaledImg; - // scaled image buffer size - unsigned int m_scaledImgSize; + ImBuf * m_scaledImBuf; // last refresh double m_lastClock; |