mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 06:26:49 +00:00
gl: Implement CopyBufferToImage in software
- Overrides the drivers CopyBufferToImage handling where possible
This commit is contained in:
parent
954c60947d
commit
f948ce399e
11 changed files with 342 additions and 239 deletions
|
|
@ -8,7 +8,15 @@ namespace gl
|
|||
{
|
||||
static GLenum sizedfmt_to_ifmt(GLenum sized)
|
||||
{
|
||||
return sized == GL_BGRA8 ? GL_RGBA8 : sized;
|
||||
switch (sized)
|
||||
{
|
||||
case GL_BGRA8:
|
||||
return GL_RGBA8;
|
||||
case GL_BGR5_A1:
|
||||
return GL_RGB5_A1;
|
||||
default:
|
||||
return sized;
|
||||
}
|
||||
}
|
||||
|
||||
texture::texture(GLenum target, GLuint width, GLuint height, GLuint depth, GLuint mipmaps, GLenum sized_format, rsx::format_class format_class)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue