History

fixed windows warnings related to truncating char

Brad Hefta-Gaub committed 12 years ago

Commit 08c9dfb1 parent 9ccaba31 file · +3 −3Browse files

Showing the changes to interface/src/renderer/TextureCache.cpp (1 of 1 file). Show all

Unified · Split

interface/src/renderer/TextureCache.cpp+3−3
@@ -76,10 +76,10 @@ GLuint TextureCache::getPermutationNormalTextureID() { · 75 unmodified lines
7676 return _permutationNormalTextureID;
7777 }
7878
79−const char OPAQUE_WHITE[] = { 0xFF, 0xFF, 0xFF, 0xFF };
80−const char OPAQUE_BLUE[] = { 0x80, 0x80, 0xFF, 0xFF };
79+const unsigned char OPAQUE_WHITE[] = { 0xFF, 0xFF, 0xFF, 0xFF };
80+const unsigned char OPAQUE_BLUE[] = { 0x80, 0x80, 0xFF, 0xFF };
8181
82−static void loadSingleColorTexture(const char* color) {
82+static void loadSingleColorTexture(const unsigned char* color) {
8383 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 1, 1, 0, GL_RGBA, GL_UNSIGNED_BYTE, color);
8484 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
8585 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t