Skip to content

Commit e588288

Browse files
committed
More fixes
1 parent 74f07d7 commit e588288

3 files changed

Lines changed: 9 additions & 10 deletions

File tree

modules/yup_graphics/native/yup_GraphicsContext_gl.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ static void GLAPIENTRY err_msg_callback (GLenum source,
3838
const GLchar* message,
3939
const void* userParam)
4040
{
41-
if (type == GL_DEBUG_TYPE_ERROR)
41+
if (type == GL_DEBUG_TYPE_ERROR_KHR)
4242
{
4343
printf ("GL ERROR: %s\n", message);
4444
fflush (stdout);
4545

4646
assert (false);
4747
}
48-
else if (type == GL_DEBUG_TYPE_PERFORMANCE)
48+
else if (type == GL_DEBUG_TYPE_PERFORMANCE_KHR)
4949
{
5050
if (strcmp (message,
5151
"API_ID_REDUNDANT_FBO performance warning has been generated. Redundant state "
@@ -73,7 +73,7 @@ class LowLevelRenderContextGL : public GraphicsContext
7373
{
7474
#if RIVE_DESKTOP_GL
7575
// Load the OpenGL API using glad.
76-
if (! gladLoadCustomLoader ((GLADloadproc) options.loaderFunction))
76+
if (! gladLoadCustomLoader ((GLADloadfunc) options.loaderFunction))
7777
{
7878
fprintf (stderr, "Failed to initialize glad.\n");
7979
exit (-1);
@@ -105,7 +105,7 @@ class LowLevelRenderContextGL : public GraphicsContext
105105
#if RIVE_DESKTOP_GL && DEBUG
106106
if (GLAD_GL_KHR_debug)
107107
{
108-
glEnable (GL_DEBUG_OUTPUT);
108+
glEnable (GL_DEBUG_OUTPUT_KHR);
109109
glDebugMessageControlKHR (GL_DONT_CARE, GL_DONT_CARE, GL_DONT_CARE, 0, nullptr, GL_TRUE);
110110
glDebugMessageCallbackKHR (&err_msg_callback, nullptr);
111111
}

modules/yup_graphics/native/yup_GraphicsContext_opengl.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ static void GLAPIENTRY err_msg_callback (GLenum source,
4040
const GLchar* message,
4141
const void* userParam)
4242
{
43-
if (type == GL_DEBUG_TYPE_ERROR)
43+
if (type == GL_DEBUG_TYPE_ERROR_KHR)
4444
{
4545
printf ("GL ERROR: %s\n", message);
4646
fflush (stdout);
4747

4848
assert (false);
4949
}
50-
else if (type == GL_DEBUG_TYPE_PERFORMANCE)
50+
else if (type == GL_DEBUG_TYPE_PERFORMANCE_KHR)
5151
{
5252
if (strcmp (message,
5353
"API_ID_REDUNDANT_FBO performance warning has been generated. Redundant state "
@@ -84,7 +84,7 @@ class LowLevelRenderContextGL : public GraphicsContext
8484
{
8585
#if RIVE_DESKTOP_GL
8686
// Load the OpenGL API using glad.
87-
if (! gladLoadCustomLoader ((GLADloadproc) options.loaderFunction))
87+
if (! gladLoadCustomLoader ((GLADloadfunc) options.loaderFunction))
8888
{
8989
fprintf (stderr, "Failed to initialize glad.\n");
9090
return;
@@ -108,7 +108,7 @@ class LowLevelRenderContextGL : public GraphicsContext
108108
#if DEBUG
109109
if (GLAD_GL_KHR_debug)
110110
{
111-
glEnable (GL_DEBUG_OUTPUT);
111+
glEnable (GL_DEBUG_OUTPUT_KHR);
112112
glDebugMessageControlKHR (GL_DONT_CARE, GL_DONT_CARE, GL_DONT_CARE, 0, nullptr, GL_TRUE);
113113
glDebugMessageCallbackKHR (&err_msg_callback, nullptr);
114114
}
@@ -278,4 +278,4 @@ std::unique_ptr<GraphicsContext> yup_constructOpenGLGraphicsContext (GraphicsCon
278278
}
279279

280280
} // namespace yup
281-
#endif
281+
#endif

thirdparty/rive_renderer/rive_renderer_emscripten.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
#elif RIVE_WEBGL
3636
#include "source/gl/gl_state.cpp"
3737
#include "source/gl/gl_utils.cpp"
38-
#include "source/gl/load_gles_extensions.cpp"
3938
#include "source/gl/load_store_actions_ext.cpp"
4039
#include "source/gl/pls_impl_webgl.cpp"
4140
#include "source/gl/render_buffer_gl_impl.cpp"

0 commit comments

Comments
 (0)