mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-10-04 13:27:14 +00:00
Moved most uses of glGetTexImage() into a single function with better error checking.
Also small config addition to optionally increase memory allocation size for temporary texture pixel data; the nouveau drivers seem notoriously awkward and keep writing over the buffer.
This commit is contained in:
parent
5b7757530f
commit
063b1c0dfc
6 changed files with 123 additions and 72 deletions
|
@ -80,6 +80,10 @@ public:
|
|||
|
||||
void write(int tx, int ty, int w, int h, const unsigned char *pixels);
|
||||
void read(int tx, int ty, int w, int h, unsigned char *pixels);
|
||||
|
||||
unsigned char *getBufferAndSize(int *w, int *h, unsigned int *size); // returned memory must be free()'d
|
||||
static int textureMemoryMultiplier; // 1. More for buggy drivers.
|
||||
|
||||
protected:
|
||||
std::string loadName;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue