if (!_tcsicmp(option, _T("gfx_shader"))) {
uae_tcslcpy(unix_gfx_shader, value && value[0] ? value : _T("none"),
sizeof unix_gfx_shader / sizeof(TCHAR));
+ write_log(_T("unix.gfx_shader = '%s'\n"), unix_gfx_shader);
return 1;
}
return 0;
/* Scale2x samples discrete texels; it requires nearest filtering. */
const TCHAR *shader_name = unix_gfx_shader_option();
const int scaler = shader_name && !_tcsicmp(shader_name, _T("scale2x")) ? 1 : 0;
+ static int logged_scaler = -1;
+ if (scaler != logged_scaler) {
+ write_log(_T("GL presenter: scaler mode %d (gfx_shader '%s')\n"),
+ scaler, shader_name ? shader_name : _T(""));
+ logged_scaler = scaler;
+ }
const bool bilinear = !scaler && filter && filter->gfx_filter_bilinear;
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER,
bilinear ? GL_LINEAR : GL_NEAREST);