better compatibility with old postprocessing shaders
This commit is contained in:
parent
b9c532c834
commit
587246e528
1 changed files with 3 additions and 4 deletions
|
@ -256,12 +256,11 @@ static void stage_draw_objects(void) {
|
|||
}
|
||||
|
||||
static void postprocess_prepare(FBO *fbo, Shader *s) {
|
||||
float w = fbo->scale;
|
||||
float h = fbo->scale;
|
||||
|
||||
glUniform1i(uniloc(s, "frames"), global.frames);
|
||||
|
||||
// deprecated, use gl_TextureMatrix[0]
|
||||
glUniform2f(uniloc(s, "view_ofs"), 0, 0);
|
||||
glUniform2f(uniloc(s, "view_scale"), VIEWPORT_W * w, VIEWPORT_H * h);
|
||||
glUniform2f(uniloc(s, "view_scale"), 1, 1);
|
||||
}
|
||||
|
||||
void stage_draw_foreground(void) {
|
||||
|
|
Loading…
Reference in a new issue