mirror of
https://github.com/mauiaaron/apple2.git
synced 2025-01-16 01:31:06 +00:00
Assert that there is only one backend renderer
This commit is contained in:
parent
5b7afea0b4
commit
c4397123cb
@ -893,6 +893,8 @@ __attribute__((constructor(CTOR_PRIORITY_EARLY)))
|
||||
static void _init_glvideo(void) {
|
||||
LOG("Initializing OpenGL renderer");
|
||||
|
||||
assert((video_backend == NULL) && "there can only be one!");
|
||||
|
||||
glvideo_backend.init = &gldriver_init;
|
||||
glvideo_backend.main_loop = &gldriver_main_loop;
|
||||
glvideo_backend.reshape = &gldriver_reshape;
|
||||
|
@ -942,6 +942,8 @@ __attribute__((constructor(CTOR_PRIORITY_EARLY)))
|
||||
static void _init_xvideo(void) {
|
||||
LOG("Initializing X11 renderer");
|
||||
|
||||
assert((video_backend == NULL) && "there can only be one!");
|
||||
|
||||
xvideo_backend.init = &xdriver_init;
|
||||
xvideo_backend.main_loop = &xdriver_main_loop;
|
||||
xvideo_backend.reshape = &xdriver_reshape;
|
||||
|
Loading…
x
Reference in New Issue
Block a user