Skip to content

Commit 50e8308

Browse files
committed
CXX_BUILD buildfix for shader_Gl3
1 parent 661e5b5 commit 50e8308

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

gfx/drivers_shader/shader_gl3.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* If not, see <http://www.gnu.org/licenses/>.
1414
*/
1515

16+
#include <retro_common_api.h>
17+
1618
#include "shader_gl3.h"
1719
#include "glslang_util.h"
1820
#include "glslang_util_cxx.h"
@@ -58,7 +60,7 @@ static void gl3_build_default_matrix(float *data)
5860
data[15] = 1.0f;
5961
}
6062

61-
extern "C" {
63+
RETRO_BEGIN_DECLS
6264

6365
void gl3_framebuffer_copy(
6466
GLuint fb_id,
@@ -131,7 +133,8 @@ extern "C" {
131133
return GL_NEAREST_MIPMAP_LINEAR;
132134
return GL_NEAREST_MIPMAP_NEAREST;
133135
}
134-
}
136+
137+
RETRO_END_DECLS
135138

136139
GLuint gl3_cross_compile_program(
137140
const uint32_t *vertex, size_t vertex_size,

0 commit comments

Comments
 (0)