Changed Fixed .bmp loading on big endian systems.
This commit is contained in:
@@ -19,7 +19,12 @@
|
|||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
#ifdef WIN32
|
||||||
|
#include <windows.h>
|
||||||
|
#endif
|
||||||
|
#include <GL/gl.h>
|
||||||
#include "bmp.h"
|
#include "bmp.h"
|
||||||
|
#include "datatypes.h"
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
#pragma warning(disable:4996)
|
#pragma warning(disable:4996)
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
#ifndef __bmp_h__
|
#ifndef __bmp_h__
|
||||||
#define __bmp_h__
|
#define __bmp_h__
|
||||||
|
|
||||||
#include "mygl.h"
|
|
||||||
#include "datatypes.h"
|
|
||||||
#include "texture.h"
|
#include "texture.h"
|
||||||
|
|
||||||
namespace OpenArena{
|
namespace OpenArena{
|
||||||
|
|||||||
@@ -4,14 +4,8 @@
|
|||||||
#pragma comment(lib, "OpenGL32.lib")
|
#pragma comment(lib, "OpenGL32.lib")
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
#include <windows.h> //I think this was only needed because gl.h uses it
|
#include <windows.h> //I think this was only needed because gl.h uses it
|
||||||
#include <GL/gl.h>
|
|
||||||
#endif
|
#endif
|
||||||
#ifdef __linux
|
|
||||||
#include <GL/gl.h>
|
#include <GL/gl.h>
|
||||||
#endif
|
|
||||||
#ifdef __APPLE__
|
|
||||||
#include <GL/gl.h>
|
|
||||||
#endif
|
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "texture.h"
|
#include "texture.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user