Permalink
Browse files

Merge pull request #6780 from stenzek/ogl-vs

OGL: Fix broken format changes in i965 driver
  • Loading branch information...
degasus committed May 7, 2018
2 parents e31c571 + 501b35b commit a7cc1044fa237ac5249cb9a7527678cd1e55de17
Showing with 1 addition and 5 deletions.
  1. +1 −5 Source/Core/VideoBackends/OGL/FramebufferManager.cpp
@@ -25,13 +25,9 @@
#include "VideoCommon/VideoBackendBase.h"
constexpr const char* GLSL_REINTERPRET_PIXELFMT_VS = R"GLSL(
#define MULTILAYER %d
flat out int layer;
void main(void) {
#if MULTILAYER
layer = 0;
#endif
vec2 rawpos = vec2(gl_VertexID & 1, gl_VertexID & 2);
gl_Position = vec4(rawpos* 2.0 - 1.0, 0.0, 1.0);
})GLSL";
@@ -356,7 +352,7 @@ FramebufferManager::FramebufferManager(int targetWidth, int targetHeight, int ms
}
// reinterpret pixel format
std::string vs = StringFromFormat(GLSL_REINTERPRET_PIXELFMT_VS, multilayer);
std::string vs = GLSL_REINTERPRET_PIXELFMT_VS;
// The way to sample the EFB is based on the on the current configuration.
// As we use the same sampling way for both interpreting shaders, the sampling

0 comments on commit a7cc104

Please sign in to comment.