fix debug build with vs2017
This commit is contained in:
@@ -3,11 +3,11 @@
|
||||
|
||||
class Texture2D
|
||||
{
|
||||
GLuint m_tex;
|
||||
int m_width;
|
||||
int m_height;
|
||||
GLint m_format;
|
||||
GLint m_iformat;
|
||||
GLuint m_tex = 0;
|
||||
int m_width = 0;
|
||||
int m_height = 0;
|
||||
GLint m_format = 0;
|
||||
GLint m_iformat = 0;
|
||||
public:
|
||||
bool create(int width, int height, GLint internal_format = GL_RGBA8, GLint format = GL_RGBA, const uint8_t* data = nullptr);
|
||||
bool create(const ui::Image& img);
|
||||
@@ -25,8 +25,8 @@ public:
|
||||
|
||||
class Sampler
|
||||
{
|
||||
GLuint id;
|
||||
GLint current_unit;
|
||||
GLuint id = 0;
|
||||
GLint current_unit = 0;
|
||||
public:
|
||||
bool create(GLint filter = GL_LINEAR, GLint wrap = GL_CLAMP_TO_EDGE);
|
||||
void set(GLint filter = GL_LINEAR, GLint wrap = GL_CLAMP_TO_EDGE);
|
||||
|
||||
Reference in New Issue
Block a user