diff options
author | k-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-09-28 14:00:53 +0000 |
---|---|---|
committer | k-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-09-28 14:00:53 +0000 |
commit | cbf062e0f808c56c51932a06ae015db764d0e056 (patch) | |
tree | 7ac98d7ef8ee0d645fc22327fafe41232e32d43a /src/base | |
parent | f4e974f904307d6120c243c6c180e4429fe12708 (diff) | |
download | usdx-cbf062e0f808c56c51932a06ae015db764d0e056.tar.gz usdx-cbf062e0f808c56c51932a06ae015db764d0e056.tar.xz usdx-cbf062e0f808c56c51932a06ae015db764d0e056.zip |
Adding hints to possible endian related problems. No code change, yet. Only suggestions for test.
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1420 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'src/base')
-rw-r--r-- | src/base/TextGL.pas | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/base/TextGL.pas b/src/base/TextGL.pas index 799a0ab8..8569fadf 100644 --- a/src/base/TextGL.pas +++ b/src/base/TextGL.pas @@ -474,6 +474,9 @@ begin glBindTexture(GL_TEXTURE_2D, texture); glTexImage2D(GL_TEXTURE_2D, 0, 4, w, h, 0, GL_RGBA, GL_UNSIGNED_BYTE, intermediary.pixels); +// on big endian machines (powerpc) this may need to be changed to +// Needs to be tests. KaMiSchi Sept 2008 +// glTexImage2D(GL_TEXTURE_2D, 0, 4, w, h, 0, GL_RGBA, GL_UNSIGNED_INT_8_8_8_8_REV, intermediary.pixels); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); |