mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 07:11:54 +00:00
- inlined FHardwareTexture::GetTexDimension.
This commit is contained in:
parent
8b01a88b76
commit
95bedac6ca
2 changed files with 6 additions and 13 deletions
|
@ -64,18 +64,6 @@ extern int TexFormat[];
|
|||
//===========================================================================
|
||||
unsigned int FHardwareTexture::lastbound[FHardwareTexture::MAX_TEXTURES];
|
||||
|
||||
//===========================================================================
|
||||
//
|
||||
// STATIC - Gets the maximum size of hardware textures
|
||||
//
|
||||
//===========================================================================
|
||||
int FHardwareTexture::GetTexDimension(int value)
|
||||
{
|
||||
if (value > gl.max_texturesize) return gl.max_texturesize;
|
||||
return value;
|
||||
}
|
||||
|
||||
|
||||
//===========================================================================
|
||||
//
|
||||
// Quick'n dirty image rescaling.
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
#define DIRECT_PALETTE -2
|
||||
|
||||
#include "tarray.h"
|
||||
#include "gl/system/gl_interface.h"
|
||||
|
||||
class FCanvasTexture;
|
||||
class AActor;
|
||||
|
@ -49,7 +50,11 @@ public:
|
|||
|
||||
static unsigned int lastbound[MAX_TEXTURES];
|
||||
|
||||
static int GetTexDimension(int value);
|
||||
static int GetTexDimension(int value)
|
||||
{
|
||||
if (value > gl.max_texturesize) return gl.max_texturesize;
|
||||
return value;
|
||||
}
|
||||
|
||||
static void InitGlobalState() { for (int i = 0; i < MAX_TEXTURES; i++) lastbound[i] = 0; }
|
||||
|
||||
|
|
Loading…
Reference in a new issue