mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 13:48:56 +00:00
FramebufferManager: Bind only the first framebuffer layer when the EFB only has one layer.
This commit is contained in:
parent
6d5e9cb5b1
commit
42bb48bd46
5 changed files with 24 additions and 17 deletions
|
@ -207,10 +207,6 @@ static void GLAPIENTRY ClearDepthf(GLfloat depthval)
|
|||
{
|
||||
glClearDepth(depthval);
|
||||
}
|
||||
static void GLAPIENTRY FramebufferTexture(GLenum target, GLenum attachment, GLuint texture, GLint level)
|
||||
{
|
||||
glFramebufferTextureLayer(target, attachment, texture, level, 0);
|
||||
}
|
||||
|
||||
static void InitDriverInfo()
|
||||
{
|
||||
|
@ -474,11 +470,6 @@ Renderer::Renderer()
|
|||
glClearDepthf = ClearDepthf;
|
||||
}
|
||||
|
||||
if (GLExtensions::Version() < 320 || GLInterface->GetMode() != GLInterfaceMode::MODE_OPENGL)
|
||||
{
|
||||
glFramebufferTexture = FramebufferTexture;
|
||||
}
|
||||
|
||||
g_Config.backend_info.bSupportsDualSourceBlend = GLExtensions::Supports("GL_ARB_blend_func_extended");
|
||||
g_Config.backend_info.bSupportsPrimitiveRestart = !DriverDetails::HasBug(DriverDetails::BUG_PRIMITIVERESTART) &&
|
||||
((GLExtensions::Version() >= 310) || GLExtensions::Supports("GL_NV_primitive_restart"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue