Lights
This commit is contained in:
@@ -63,8 +63,7 @@ HydraID HydraTextureBufferManager::LoadTexture(std::string texture_filename)
|
||||
GL_RGBA8,
|
||||
format,
|
||||
GL_NEAREST_MIPMAP_NEAREST,
|
||||
GL_LINEAR,
|
||||
1,
|
||||
GL_LINEAR,
|
||||
GL_UNSIGNED_BYTE,
|
||||
5,
|
||||
data,
|
||||
@@ -150,8 +149,7 @@ HydraID HydraTextureBufferManager::CreateTexture(std::string texture_name,
|
||||
uint32_t height,
|
||||
uint32_t internal_format,
|
||||
uint32_t min_filter,
|
||||
uint32_t mag_filter,
|
||||
uint32_t levels,
|
||||
uint32_t mag_filter,
|
||||
uint32_t format,
|
||||
uint32_t data_type,
|
||||
uint32_t mip_levels,
|
||||
@@ -160,9 +158,8 @@ HydraID HydraTextureBufferManager::CreateTexture(std::string texture_name,
|
||||
uint32_t gl_tex_id = 0;
|
||||
glCreateTextures(GL_TEXTURE_2D, 1, &gl_tex_id);
|
||||
glBindTexture(GL_TEXTURE_2D, gl_tex_id);
|
||||
|
||||
|
||||
glTextureStorage2D(gl_tex_id, levels, internal_format, width, height);
|
||||
glTextureStorage2D(gl_tex_id,1+ mip_levels, internal_format, width, height);
|
||||
|
||||
if (data != nullptr)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user