mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 06:26:49 +00:00
gl: Refactor the rest of GLHelpers
This commit is contained in:
parent
09824a718f
commit
35ef19cfc8
28 changed files with 1806 additions and 1817 deletions
|
|
@ -224,7 +224,7 @@ namespace gl
|
|||
}
|
||||
}
|
||||
|
||||
void texture_view::create(texture* data, GLenum target, GLenum sized_format, GLenum aspect_flags, const GLenum* argb_swizzle)
|
||||
void texture_view::create(texture* data, GLenum target, GLuint min_level, GLuint num_levels, GLenum sized_format, GLenum aspect_flags, const GLenum* argb_swizzle)
|
||||
{
|
||||
m_target = target;
|
||||
m_format = sizedfmt_to_ifmt(sized_format);
|
||||
|
|
@ -243,7 +243,7 @@ namespace gl
|
|||
}
|
||||
|
||||
glGenTextures(1, &m_id);
|
||||
glTextureView(m_id, target, data->id(), m_format, 0, data->levels(), 0, num_layers);
|
||||
glTextureView(m_id, target, data->id(), m_format, min_level, num_levels, 0, num_layers);
|
||||
|
||||
if (argb_swizzle)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue