GLES: Use aligned memory for textures.

We use SSE on them, and they used to be aligned, and must be aligned in
PSP RAM, so keep them aligned.

This only really affects 32-bit, since allocs will typically be aligned on
64-bit anyway.

Fixes #10601.
This commit is contained in:
Unknown W. Brackets committed 2018-02-11 08:13:57 -08:00
1 parent 0e2a586c1b
commit 0474ff5c23
7 files changed
+23 -12

No files matched your search

+5
View File
@@ -19,6 +19,10 @@ struct GLOffset2D {
int x, y;
};
enum class GLRAllocType {
NEW,
ALIGNED,
};
class GLRShader;
class GLRTexture;
@@ -242,6 +246,7 @@ struct GLRInitStep {
int level;
int width;
int height;
GLRAllocType allocType;
bool linearFilter;
uint8_t *data; // owned, delete[]-d
} texture_image;