mirror of
https://github.com/libretro/RetroArch
synced 2025-03-21 13:20:52 +00:00
Use 3.1 in libretro-test-gl when CORE is used.
This commit is contained in:
parent
9ab274a51a
commit
805e623779
@ -304,7 +304,7 @@ static const char *stock_fragment_core_blend =
|
||||
"in vec4 color;\n"
|
||||
"out vec4 FragColor;\n"
|
||||
"void main() {\n"
|
||||
" FragColor = color * texture2D(Texture, tex_coord);\n"
|
||||
" FragColor = color * texture(Texture, tex_coord);\n"
|
||||
"}";
|
||||
|
||||
static GLint get_uniform(GLuint prog, const char *base)
|
||||
|
@ -141,7 +141,7 @@ static const GLfloat vertex_data[] = {
|
||||
|
||||
#ifdef CORE
|
||||
static const char *vertex_shader[] = {
|
||||
"#version 420\n"
|
||||
"#version 140\n"
|
||||
"uniform mat4 uMVP;",
|
||||
"in vec2 aVertex;",
|
||||
"in vec4 aColor;",
|
||||
@ -153,7 +153,7 @@ static const char *vertex_shader[] = {
|
||||
};
|
||||
|
||||
static const char *fragment_shader[] = {
|
||||
"#version 420\n"
|
||||
"#version 140\n"
|
||||
"in vec4 color;",
|
||||
"out vec4 FragColor;\n"
|
||||
"void main() {",
|
||||
@ -427,8 +427,8 @@ bool retro_load_game(const struct retro_game_info *info)
|
||||
#else
|
||||
#ifdef CORE
|
||||
hw_render.context_type = RETRO_HW_CONTEXT_OPENGL_CORE;
|
||||
hw_render.version_major = 4;
|
||||
hw_render.version_minor = 2;
|
||||
hw_render.version_major = 3;
|
||||
hw_render.version_minor = 1;
|
||||
#else
|
||||
hw_render.context_type = RETRO_HW_CONTEXT_OPENGL;
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user