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
76 return _permutationNormalTextureID;76 return _permutationNormalTextureID;
77}77}
78 78
79const char OPAQUE_WHITE[] = { 0xFF, 0xFF, 0xFF, 0xFF };79const unsigned char OPAQUE_WHITE[] = { 0xFF, 0xFF, 0xFF, 0xFF };
80const char OPAQUE_BLUE[] = { 0x80, 0x80, 0xFF, 0xFF };80const unsigned char OPAQUE_BLUE[] = { 0x80, 0x80, 0xFF, 0xFF };
81 81
82static void loadSingleColorTexture(const char* color) {82static void loadSingleColorTexture(const unsigned char* color) {
83 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 1, 1, 0, GL_RGBA, GL_UNSIGNED_BYTE, color);83 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 1, 1, 0, GL_RGBA, GL_UNSIGNED_BYTE, color);
84 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);84 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
85}85}

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