-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(WIP) First, bad, groundwork implementation of OpenGL backend #183
Conversation
@@ -88,6 +88,11 @@ NONMATCH("asm/non_matching/engine/sub_8002B20.inc", bool32 sub_8002B20(void)) | |||
s32 j; | |||
u16 k; | |||
|
|||
#if (RENDERER == RENDERER_OPENGL) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might as well be consistent and do if (RENDERER == RENDERER_SOFTWARE)
around the whole thing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For such a big function? I'd rather keep it with a short #ifdef
.
src/core.c
Outdated
@@ -720,7 +720,9 @@ static bool32 ProcessVramGraphicsCopyQueue(void) | |||
if ((graphics->src != 0) && (graphics->dest != 0)) | |||
#endif | |||
{ | |||
#if (RENDERER != RENDERER_OPENGL) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renderer == software for these too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here I'd like to keep everything except the memcpy intact, because I don't yet know if it breaks something if the size isn't reduced correctly. As well as INC_GRAPHICS_QUEUE_CURSOR() not being called otherwise.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah that's fine, I guess I just meant you could use RENDER == software
instead of RENDERER != OPEN_GL
?
No description provided.