Other parts work just fine
This commit is contained in:
1 parent
beaf57a423
commit
5f4fe5e624
7 files changed
+37
-42
No files matched your search
@@ -30,8 +30,6 @@
|
||||
#include "opengta.h"
|
||||
#include "physfsrwops.h"
|
||||
|
||||
//Xperimental -- Vladislav Khorev vladislav.khorev@fishrungames.com
|
||||
//#include "SDL_image.h"
|
||||
#include "m_exceptions.h"
|
||||
|
||||
namespace ImageUtil {
|
||||
@@ -172,28 +170,12 @@ using OpenGL::PagedTexture;
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
|
||||
|
||||
//Xperimental -- Vladislav Khorev vladislav.khorev@fishrungames.com
|
||||
|
||||
if (rgba) {
|
||||
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, w, h, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels);
|
||||
}
|
||||
else {
|
||||
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, w, h, 0, GL_RGB, GL_UNSIGNED_BYTE, pixels);
|
||||
}
|
||||
/*
|
||||
if (rgba) {
|
||||
if (mipmapTextures)
|
||||
gluBuild2DMipmaps(GL_TEXTURE_2D, 4, w, h, GL_RGBA, GL_UNSIGNED_BYTE, pixels);
|
||||
else
|
||||
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, w, h, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels);
|
||||
}
|
||||
else {
|
||||
if (mipmapTextures)
|
||||
gluBuild2DMipmaps(GL_TEXTURE_2D, 3, w, h, GL_RGB, GL_UNSIGNED_BYTE, pixels);
|
||||
else
|
||||
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, w, h, 0, GL_RGB, GL_UNSIGNED_BYTE, pixels);
|
||||
}*/
|
||||
|
||||
|
||||
|
||||
if (supportedMaxAnisoDegree > 1.0f)
|
||||
|
||||
@@ -21,8 +21,6 @@
|
||||
* distribution. *
|
||||
************************************************************************/
|
||||
|
||||
//Xperimental -- Vladislav Khorev vladislav.khorev@fishrungames.com
|
||||
//#include <SDL_keysym.h>
|
||||
#include "key_handler.h"
|
||||
#include "log.h"
|
||||
|
||||
|
||||
Reference in new issue
Block a user