Browse Source
Merge pull request #2579 from ReinUsesLisp/fix-aoffi-test
gl_device: Fix TestVariableAoffi test
pull/15/merge
bunnei
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
src/video_core/renderer_opengl/gl_device.cpp
|
|
|
@ -43,8 +43,9 @@ bool Device::TestVariableAoffi() { |
|
|
|
// This is a unit test, please ignore me on apitrace bug reports.
|
|
|
|
uniform sampler2D tex; |
|
|
|
uniform ivec2 variable_offset; |
|
|
|
out vec4 output_attribute; |
|
|
|
void main() { |
|
|
|
gl_Position = textureOffset(tex, vec2(0), variable_offset); |
|
|
|
output_attribute = textureOffset(tex, vec2(0), variable_offset); |
|
|
|
} |
|
|
|
)"; |
|
|
|
const GLuint shader{glCreateShaderProgramv(GL_VERTEX_SHADER, 1, &AOFFI_TEST)}; |
|
|
|
|