Rename some functions.

This commit is contained in:
Brandon Wright 2018-05-08 17:56:13 -05:00
parent f7bf180b39
commit e0de36dbb6
2 changed files with 8 additions and 8 deletions

View File

@ -339,7 +339,7 @@ S9xOpenGLDisplayDriver::update_texture_size (int width, int height)
}
int
S9xOpenGLDisplayDriver::load_pixel_buffer_functions (void)
S9xOpenGLDisplayDriver::pbos_available (void)
{
const char *extensions = (const char *) glGetString (GL_EXTENSIONS);
@ -355,7 +355,7 @@ S9xOpenGLDisplayDriver::load_pixel_buffer_functions (void)
}
int
S9xOpenGLDisplayDriver::load_shader_functions (void)
S9xOpenGLDisplayDriver::shaders_available (void)
{
const char *extensions = (const char *) glGetString (GL_EXTENSIONS);
@ -406,7 +406,7 @@ S9xOpenGLDisplayDriver::load_shaders (const char *shader_file)
}
if (!load_shader_functions ())
if (!shaders_available ())
{
fprintf (stderr, _("Cannot load GLSL shader functions.\n"));
return 0;
@ -483,7 +483,7 @@ S9xOpenGLDisplayDriver::opengl_defaults (void)
using_pbos = 0;
if (config->use_pbos)
{
if (!load_pixel_buffer_functions ())
if (!pbos_available ())
{
fprintf (stderr, _("pixel_buffer_object extension not supported.\n"));
@ -512,8 +512,8 @@ S9xOpenGLDisplayDriver::opengl_defaults (void)
}
tex_target = GL_TEXTURE_2D;
texture_width = 256;
texture_height = 256;
texture_width = 1024;
texture_height = 1024;
dyn_resizing = FALSE;
const char *extensions = (const char *) glGetString (GL_EXTENSIONS);

View File

@ -44,8 +44,8 @@ class S9xOpenGLDisplayDriver : public S9xDisplayDriver
int opengl_defaults (void);
void swap_control (int enable);
void gl_swap (void);
int load_pixel_buffer_functions (void);
int load_shader_functions (void);
int pbos_available (void);
int shaders_available (void);
int load_shaders (const char *);
void update_texture_size (int width, int height);
int init_glx (void);