shakesoda's suggestions for more glew stuff.
Again, revert if a terrible idea.
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
#include "RageDisplay_OGL_Helpers.h"
|
#include "RageDisplay_OGL_Helpers.h"
|
||||||
#include "RageDisplay_OGL.h"
|
#include "RageDisplay_OGL.h"
|
||||||
|
|
||||||
#include <GL/gl.h>
|
#include <GL/glew.h>
|
||||||
|
|
||||||
static PIXELFORMATDESCRIPTOR g_CurrentPixelFormat;
|
static PIXELFORMATDESCRIPTOR g_CurrentPixelFormat;
|
||||||
static HGLRC g_HGLRC = NULL;
|
static HGLRC g_HGLRC = NULL;
|
||||||
@@ -351,7 +351,7 @@ void RenderTarget_Win32::Create(const RenderTargetParam ¶m, int &iTextureWid
|
|||||||
|
|
||||||
GLenum internalformat;
|
GLenum internalformat;
|
||||||
GLenum type = param.bWithAlpha? GL_RGBA:GL_RGB;
|
GLenum type = param.bWithAlpha? GL_RGBA:GL_RGB;
|
||||||
if( param.bFloat && GLExt.m_bGL_ARB_texture_float )
|
if( param.bFloat && m_bGL_ARB_texture_float )
|
||||||
internalformat = param.bWithAlpha? GL_RGBA16F_ARB:GL_RGB16F_ARB;
|
internalformat = param.bWithAlpha? GL_RGBA16F_ARB:GL_RGB16F_ARB;
|
||||||
else
|
else
|
||||||
internalformat = param.bWithAlpha? GL_RGBA8:GL_RGB8;
|
internalformat = param.bWithAlpha? GL_RGBA8:GL_RGB8;
|
||||||
|
|||||||
Reference in New Issue
Block a user