mirror of
https://github.com/glest/glest-source.git
synced 2025-08-11 19:04:00 +02:00
- attempt to avoid crash if color picking index is larger than buffer, increase it
This commit is contained in:
@@ -250,7 +250,7 @@ public:
|
||||
PixelBufferWrapper(int pboCount,int bufferSize);
|
||||
~PixelBufferWrapper();
|
||||
|
||||
static Pixmap2D *getPixelBufferFor(int x,int y,int w,int h, int colorComponents);
|
||||
Pixmap2D *getPixelBufferFor(int x,int y,int w,int h, int colorComponents);
|
||||
static void begin();
|
||||
static void end();
|
||||
static bool getIsPBOEnable() { return isPBOEnabled; }
|
||||
@@ -259,8 +259,10 @@ private:
|
||||
static bool isPBOEnabled;
|
||||
static int index;
|
||||
static vector<uint32> pboIds;
|
||||
int bufferSize;
|
||||
|
||||
void cleanup();
|
||||
void addBuffersToPixelBuf(int pboCount);
|
||||
};
|
||||
|
||||
class BaseColorPickEntity {
|
||||
|
Reference in New Issue
Block a user