(360) Correctly initialize fbo_scale_x/fbo_scale_y

This commit is contained in:
twinaphex 2013-01-22 16:30:35 +01:00
parent 2a05f3568a
commit 858a21f87a
2 changed files with 3 additions and 3 deletions

View File

@ -248,7 +248,7 @@ static const float message_pos_offset_y = 0.05;
static const uint32_t message_color = 0xffff00; // RGB hex value.
// Render-to-texture before rendering to screen (multi-pass shaders)
#if defined(__CELLOS_LV2__) || defined(_XBOX360)
#if defined(__CELLOS_LV2__)
static const bool render_to_texture = true;
#else
static const bool render_to_texture = false;

View File

@ -177,11 +177,11 @@ void config_set_defaults(void)
g_settings.video.msg_color_g = ((message_color >> 8) & 0xff) / 255.0f;
g_settings.video.msg_color_b = ((message_color >> 0) & 0xff) / 255.0f;
#if defined(HAVE_CG) || defined(HAVE_GLSL)
#if defined(HAVE_CG) || defined(HAVE_GLSL) || defined(HAVE_HLSL)
g_settings.video.render_to_texture = render_to_texture;
g_settings.video.second_pass_smooth = second_pass_smooth;
g_settings.video.fbo.scale_x = fbo_scale_x;
g_settings.video.fbo.scale_y = fbo_scale_y;
g_settings.video.second_pass_smooth = second_pass_smooth;
#endif
g_settings.video.refresh_rate = refresh_rate;