X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_gen.h;h=1648bdf490370113e0b954f1a2d26b8b1c6b7c53;hb=c88172d6968a02a4e643b74cc419c0ac8168d92a;hp=4e96d96be15bda08408deff3205afe498e2bf5e2;hpb=b528a849aba893cee8c8bfbaa01ff13cf59fb429;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_gen.h b/world_gen.h index 4e96d96..1648bdf 100644 --- a/world_gen.h +++ b/world_gen.h @@ -544,8 +544,7 @@ VG_STATIC void world_post_process(void) glDisable(GL_DEPTH_TEST); glDisable(GL_BLEND); glDisable(GL_CULL_FACE); - glBindFramebuffer( GL_FRAMEBUFFER, gpipeline.fb_depthmap ); - glViewport( 0, 0, 1024, 1024 ); + render_fb_bind( gpipeline.fb_heightmap ); shader_blitcolour_use(); shader_blitcolour_uColour( (v4f){-9999.0f,-9999.0f,-9999.0f,-9999.0f} ); render_fsquad();