update android and xcode projects, fix document title and change default resolution to 1024px
This commit is contained in:
@@ -46,7 +46,8 @@ bool Texture2D::create(int width, int height, GLint internal_format, GLint forma
|
||||
glGenTextures(1, &m_tex);
|
||||
//LOG("TEX create %d", m_tex);
|
||||
bind();
|
||||
glTexImage2D(GL_TEXTURE_2D, 0, internal_format, width, height, 0, format, GL_UNSIGNED_BYTE, data);
|
||||
glTexImage2D(GL_TEXTURE_2D, 0, internal_format, width, height, 0, format,
|
||||
internal_format == GL_RGBA32F ? GL_FLOAT : GL_UNSIGNED_BYTE, data);
|
||||
unbind();
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user