|
@@ -239,9 +239,6 @@ static void load_image(GLuint *target, const char *path) {
|
|
|
int channels;
|
|
|
stbi_set_flip_vertically_on_load(1);
|
|
|
unsigned char *raw_data = stbi_load(path, &width, &height, &channels, 4);
|
|
|
- if (!raw_data) {
|
|
|
- OutputDebugString("Couldn't load image data\n");
|
|
|
- }
|
|
|
|
|
|
glBindTexture(GL_TEXTURE_2D, *target);
|
|
|
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, raw_data);
|
|
@@ -253,10 +250,6 @@ static void load_image(GLuint *target, const char *path) {
|
|
|
|
|
|
glBindTexture(GL_TEXTURE_2D, 0);
|
|
|
|
|
|
- if (glGetError()) {
|
|
|
- OutputDebugString("GOt error while loading image\n");
|
|
|
- }
|
|
|
-
|
|
|
stbi_image_free(raw_data);
|
|
|
}
|
|
|
|
|
@@ -299,10 +292,6 @@ int render_init(char *playlist) {
|
|
|
glOrtho(0, width, 0, dpi_y(C_SIZE), -10, 10);
|
|
|
glMatrixMode(GL_MODELVIEW);
|
|
|
|
|
|
- char help[128];
|
|
|
- snprintf(help, 128, "App width: %d\n", width);
|
|
|
- OutputDebugString(help);
|
|
|
-
|
|
|
return width;
|
|
|
}
|
|
|
|