mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-04-10 19:15:13 +00:00
Changed an RGBA vector getter from copy to reference to reduce CPU usage.
This commit is contained in:
parent
3d3d951842
commit
58345863b3
|
@ -67,7 +67,7 @@ public:
|
||||||
// Has the image been loaded but not yet been rasterized as the size was not known?
|
// Has the image been loaded but not yet been rasterized as the size was not known?
|
||||||
bool getPendingRasterization() { return mPendingRasterization; }
|
bool getPendingRasterization() { return mPendingRasterization; }
|
||||||
|
|
||||||
std::vector<unsigned char> getRawRGBAData() { return mDataRGBA; }
|
std::vector<unsigned char>& getRawRGBAData() { return mDataRGBA; }
|
||||||
std::string getTextureFilePath() { return mPath; }
|
std::string getTextureFilePath() { return mPath; }
|
||||||
bool tiled() { return mTile; }
|
bool tiled() { return mTile; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue