Minor cleanup, elimintate some bind ordering hazards that D3D11 warns about

This commit is contained in:
Henrik Rydgard committed 2017-02-17 14:31:02 +01:00
1 parent b961117897
commit e83dd2b524
15 files changed
+33 -32

No files matched your search

+1 -5
View File
@@ -493,11 +493,7 @@ void FramebufferManagerGLES::BlitFramebufferDepth(VirtualFramebuffer *src, Virtu
}
}
void FramebufferManagerGLES::BindFramebufferColor(int stage, VirtualFramebuffer *framebuffer, int flags) {
if (framebuffer == NULL) {
framebuffer = currentRenderVfb_;
}
void FramebufferManagerGLES::BindFramebufferAsColorTexture(int stage, VirtualFramebuffer *framebuffer, int flags) {
if (!framebuffer->fbo || !useBufferedRendering_) {
glBindTexture(GL_TEXTURE_2D, 0);
gstate_c.skipDrawReason |= SKIPDRAW_BAD_FB_TEXTURE;