mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Updated stb_image to 2.12.
This commit is contained in:
+514
-258
File diff suppressed because it is too large
Load Diff
@@ -221,8 +221,8 @@ void Image::loadDefaultTexture()
|
|||||||
setFilter(filter);
|
setFilter(filter);
|
||||||
|
|
||||||
// A nice friendly checkerboard to signify invalid textures...
|
// A nice friendly checkerboard to signify invalid textures...
|
||||||
GLubyte px[] = {0xFF,0xFF,0xFF,0xFF, 0xFF,0xC0,0xC0,0xFF,
|
GLubyte px[] = {0xFF,0xFF,0xFF,0xFF, 0xFF,0xA0,0xA0,0xFF,
|
||||||
0xFF,0xC0,0xC0,0xFF, 0xFF,0xFF,0xFF,0xFF};
|
0xFF,0xA0,0xA0,0xFF, 0xFF,0xFF,0xFF,0xFF};
|
||||||
|
|
||||||
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 2, 2, 0, GL_RGBA, GL_UNSIGNED_BYTE, px);
|
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 2, 2, 0, GL_RGBA, GL_UNSIGNED_BYTE, px);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user