mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-10-15 05:19:41 -07:00
eliminate os_core, move into base; eliminate regs, move into arch abstraction layer, define x64 regs in x64 layer; move win32 backend for os core (now base) functionality to top-level win32 layer
This commit is contained in:
1 parent
24c858171f
commit
aea4a4ff9d
148 files changed
+7942
-5268
No files matched your search
@@ -24,7 +24,7 @@ r_ogl_os_init(CmdLine *cmdln)
|
||||
if(r_ogl_lnx_state->display == EGL_NO_DISPLAY)
|
||||
{
|
||||
os_graphical_message(1, str8_lit("Fatal Error"), str8_lit("Failed to get EGL display."));
|
||||
os_abort(1);
|
||||
abort_self(1);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,14 +34,14 @@ r_ogl_os_init(CmdLine *cmdln)
|
||||
if(!eglInitialize(r_ogl_lnx_state->display, &egl_version_major, &egl_version_minor))
|
||||
{
|
||||
os_graphical_message(1, str8_lit("Fatal Error"), str8_lit("Couldn't initialize EGL display."));
|
||||
os_abort(1);
|
||||
abort_self(1);
|
||||
}
|
||||
if(egl_version_major < 1 || (egl_version_major == 1 && egl_version_minor < 5))
|
||||
{
|
||||
Temp scratch = scratch_begin(0, 0);
|
||||
String8 message = push_str8f(scratch.arena, "Unsupported EGL version (%i.%i, need at least 1.5)", egl_version_major, egl_version_minor);
|
||||
os_graphical_message(1, str8_lit("Fatal Error"), message);
|
||||
os_abort(1);
|
||||
abort_self(1);
|
||||
scratch_end(scratch);
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ r_ogl_os_init(CmdLine *cmdln)
|
||||
if(!eglBindAPI(EGL_OPENGL_API))
|
||||
{
|
||||
os_graphical_message(1, str8_lit("Fatal Error"), str8_lit("Couldn't initialize EGL API to OpenGL."));
|
||||
os_abort(1);
|
||||
abort_self(1);
|
||||
}
|
||||
|
||||
//- rjf: construct context
|
||||
@@ -70,7 +70,7 @@ r_ogl_os_init(CmdLine *cmdln)
|
||||
if(r_ogl_lnx_state->context == EGL_NO_CONTEXT)
|
||||
{
|
||||
os_graphical_message(1, str8_lit("Fatal Error"), str8_lit("Couldn't create OpenGL context with EGL."));
|
||||
os_abort(1);
|
||||
abort_self(1);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -121,7 +121,7 @@ r_ogl_os_window_equip(OS_Handle window)
|
||||
if(!eglChooseConfig(r_ogl_lnx_state->display, options, configs, ArrayCount(configs), &configs_count) || configs_count == 0)
|
||||
{
|
||||
os_graphical_message(1, str8_lit("Fatal Error"), str8_lit("Couldn't choose EGL configuration."));
|
||||
os_abort(1);
|
||||
abort_self(1);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -144,7 +144,7 @@ r_ogl_os_window_equip(OS_Handle window)
|
||||
if(r_ogl_lnx_state->config == 0)
|
||||
{
|
||||
os_graphical_message(1, str8_lit("Fatal Error"), str8_lit("Couldn't find a suitable EGL configuration."));
|
||||
os_abort(1);
|
||||
abort_self(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -155,7 +155,7 @@ r_ogl_os_window_equip(OS_Handle window)
|
||||
if(w->surface == EGL_NO_SURFACE)
|
||||
{
|
||||
os_graphical_message(1, str8_lit("Fatal Error"), str8_lit("Couldn't create EGL surface."));
|
||||
os_abort(1);
|
||||
abort_self(1);
|
||||
}
|
||||
}
|
||||
R_Handle result = {(U64)w};
|
||||
|
||||
@@ -21,7 +21,7 @@ r_ogl_os_init(CmdLine *cmdln)
|
||||
Temp scratch = scratch_begin(0, 0);
|
||||
String8 message = push_str8f(scratch.arena, "Unsupported GLX version (%i.%i, need at least 1.3)", glx_version_major, glx_version_minor);
|
||||
os_graphical_message(1, str8_lit("Fatal Error"), message);
|
||||
os_abort(1);
|
||||
abort_self(1);
|
||||
scratch_end(scratch);
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ r_ogl_os_init(CmdLine *cmdln)
|
||||
if(framebuffer_configs == 0)
|
||||
{
|
||||
os_graphical_message(1, str8_lit("Fatal Error"), str8_lit("Could not find a suitable framebuffer configuration."));
|
||||
os_abort(1);
|
||||
abort_self(1);
|
||||
}
|
||||
GLXFBConfig framebuffer_config = framebuffer_configs[0];
|
||||
XFree(framebuffer_configs);
|
||||
|
||||
Reference in new issue
Block a user