Minor fixes
This commit is contained in:
parent
8ee28fdaac
commit
03694d85bf
|
@ -17,7 +17,7 @@
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
|
|
||||||
#ifndef BUILD_LIBGL
|
#ifndef BUILD_LIBGL
|
||||||
#include <GL/gl.h>
|
#include <gl.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define GLU_FALSE 0
|
#define GLU_FALSE 0
|
||||||
|
|
|
@ -9,10 +9,10 @@
|
||||||
|
|
||||||
#include <kos.h>
|
#include <kos.h>
|
||||||
|
|
||||||
#include "gl.h"
|
#include "../include/gl.h"
|
||||||
#include "glu.h"
|
#include "../include/glu.h"
|
||||||
#include "glkos.h"
|
#include "../include/glkos.h"
|
||||||
#include "glext.h"
|
#include "../include/glext.h"
|
||||||
|
|
||||||
#define PVR_HDR_SIZE 0x20
|
#define PVR_HDR_SIZE 0x20
|
||||||
#define MAX(x, y) ((x > y) ? x : y)
|
#define MAX(x, y) ((x > y) ? x : y)
|
||||||
|
@ -92,12 +92,12 @@ GLuint glTextureLoadPVR(char *fname, unsigned char isMipMapped, unsigned char gl
|
||||||
if(texFormat != GL_UNSIGNED_SHORT_5_6_5)
|
if(texFormat != GL_UNSIGNED_SHORT_5_6_5)
|
||||||
glCompressedTexImage2DARB(GL_TEXTURE_2D,
|
glCompressedTexImage2DARB(GL_TEXTURE_2D,
|
||||||
0,
|
0,
|
||||||
texFormat,
|
texFormat,
|
||||||
texW,
|
texW,
|
||||||
texH,
|
texH,
|
||||||
0,
|
0,
|
||||||
texSize,
|
texSize,
|
||||||
TEX0);
|
TEX0);
|
||||||
else {
|
else {
|
||||||
fprintf(stderr, "%x\n", texFormat);
|
fprintf(stderr, "%x\n", texFormat);
|
||||||
glTexImage2D(GL_TEXTURE_2D,
|
glTexImage2D(GL_TEXTURE_2D,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user