diff --git a/360/main.c b/360/main.c index 982e494844..782acd0d0c 100644 --- a/360/main.c +++ b/360/main.c @@ -134,7 +134,7 @@ static void set_default_settings (void) strlcpy(g_settings.video.cg_shader_path, DEFAULT_SHADER_FILE, sizeof(g_settings.video.cg_shader_path)); g_settings.video.fbo_scale_x = 2.0f; g_settings.video.fbo_scale_y = 2.0f; - g_settings.video.render_to_texture = false; + g_settings.video.render_to_texture = true; strlcpy(g_settings.video.second_pass_shader, DEFAULT_SHADER_FILE, sizeof(g_settings.video.second_pass_shader)); g_settings.video.second_pass_smooth = true; g_settings.video.smooth = true; diff --git a/360/xdk360_video.cpp b/360/xdk360_video.cpp index ae79634c93..2a8628a9ca 100644 --- a/360/xdk360_video.cpp +++ b/360/xdk360_video.cpp @@ -395,8 +395,6 @@ static bool xdk360_init_fbo(xdk360_video_t * vid, unsigned width, unsigned heigh vid->d3d_render_device->CreateRenderTarget(height * g_settings.video.fbo_scale_x, height * g_settings.video.fbo_scale_y, ( D3DFORMAT )MAKESRGBFMT( D3DFMT_A8R8G8B8 ), D3DMULTISAMPLE_NONE, 0, 0, &vid->fbo, NULL ); - vid->fbo_inited = true; - return true; } @@ -519,16 +517,8 @@ static bool xdk360_gfx_frame(void *data, const void *frame, memset(d3dlr.pBits, 0, 512 * d3dlr.Pitch); vid->lpTexture->UnlockRect(0); - ifdef(vid->fbo_inited) - { - float tex_w = width / (512.0f * g_settings.video.fbo_scale_x); - float tex_h = height / (512.0f * g_settings.video.fbo_scale_y); - } - else - { - float tex_w = width / (512.0f); - float tex_h = height / (512.0f); - } + float tex_w = width / (512.0f * g_settings.video.fbo_scale_x); + float tex_h = height / (512.0f * g_settings.video.fbo_scale_y); const DrawVerticeFormats verts[] = { { -1.0f, -1.0f, 0.0f, tex_h },