mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
reset back to good old standards. ;p
This commit is contained in:
parent
42dc761cac
commit
ccc73ccbdb
6
config.h
6
config.h
@ -62,15 +62,15 @@ static const unsigned fullscreen_y = 720;
|
|||||||
static const bool vsync = true;
|
static const bool vsync = true;
|
||||||
|
|
||||||
// Smooths picture
|
// Smooths picture
|
||||||
static const bool video_smooth = false;
|
static const bool video_smooth = true;
|
||||||
|
|
||||||
// Path to custom Cg shader. If using custom shaders, it is recommended to disable video_smooth and VIDEO_FILTER.
|
// Path to custom Cg shader. If using custom shaders, it is recommended to disable video_smooth.
|
||||||
static const char *cg_shader_path = "hqflt/crt.cg";
|
static const char *cg_shader_path = "hqflt/crt.cg";
|
||||||
|
|
||||||
// On resize and fullscreen, rendering area will stay 4:3
|
// On resize and fullscreen, rendering area will stay 4:3
|
||||||
static const bool force_aspect = true;
|
static const bool force_aspect = true;
|
||||||
|
|
||||||
/////////// Video filters
|
/////////// Video filters (CPU based)
|
||||||
#define FILTER_NONE 0
|
#define FILTER_NONE 0
|
||||||
#define FILTER_HQ2X 1
|
#define FILTER_HQ2X 1
|
||||||
#define FILTER_HQ4X 2
|
#define FILTER_HQ4X 2
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
BUILD_OPENGL = 1
|
BUILD_OPENGL = 1
|
||||||
BUILD_CG = 1
|
BUILD_CG = 0
|
||||||
BUILD_FILTER = 0
|
BUILD_FILTER = 0
|
||||||
|
|
||||||
BUILD_RSOUND = 0
|
BUILD_RSOUND = 0
|
||||||
|
6
gl.c
6
gl.c
@ -45,7 +45,9 @@ static const GLfloat tex_coords[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static bool keep_aspect = true;
|
static bool keep_aspect = true;
|
||||||
|
#ifdef HAVE_CG
|
||||||
static CGparameter cg_mvp_matrix;
|
static CGparameter cg_mvp_matrix;
|
||||||
|
#endif
|
||||||
typedef struct gl
|
typedef struct gl
|
||||||
{
|
{
|
||||||
bool vsync;
|
bool vsync;
|
||||||
@ -189,7 +191,9 @@ static void GLFWCALL resize(int width, int height)
|
|||||||
glOrtho(0, 1, 0, 1, -1, 1);
|
glOrtho(0, 1, 0, 1, -1, 1);
|
||||||
glMatrixMode(GL_MODELVIEW);
|
glMatrixMode(GL_MODELVIEW);
|
||||||
glLoadIdentity();
|
glLoadIdentity();
|
||||||
|
#ifdef HAVE_CG
|
||||||
cgGLSetStateMatrixParameter(cg_mvp_matrix, CG_GL_MODELVIEW_PROJECTION_MATRIX, CG_GL_MATRIX_IDENTITY);
|
cgGLSetStateMatrixParameter(cg_mvp_matrix, CG_GL_MODELVIEW_PROJECTION_MATRIX, CG_GL_MATRIX_IDENTITY);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static float tv_to_fps(const struct timeval *tv, const struct timeval *new_tv, int frames)
|
static float tv_to_fps(const struct timeval *tv, const struct timeval *new_tv, int frames)
|
||||||
@ -368,9 +372,11 @@ static void* gl_init(video_info_t *video, const input_driver_t **input)
|
|||||||
|
|
||||||
*input = &input_glfw;
|
*input = &input_glfw;
|
||||||
return gl;
|
return gl;
|
||||||
|
#ifdef HAVE_CG
|
||||||
error:
|
error:
|
||||||
free(gl);
|
free(gl);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
const video_driver_t video_gl = {
|
const video_driver_t video_gl = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user