GBuffer video mem now blit directly to the backbuffer cpu array.

This commit is contained in:
Justin Marshall
2020-06-11 19:35:27 -07:00
parent f289eca079
commit 0a26a05572
4 changed files with 7 additions and 10 deletions
+1 -5
View File
@@ -62,7 +62,7 @@
GLuint backbuffer_texture = -1;
byte* backbuffer_data;
byte* backbuffer_data_raw;
unsigned char* backbuffer_data_raw;
byte backbuffer_palette[768];
HWND MainWindow;
SurfaceMonitorClass AllSurfaces;
@@ -70,10 +70,6 @@ SDL_Window* game_window;
SDL_GLContext game_context;
int OverlappedVideoBlits = 0;
void Video_Set_Data(unsigned char* buffer, int width, int height) {
memcpy(backbuffer_data_raw, buffer, width * height);
}
void (*Misc_Focus_Loss_Function)(void) = nullptr;
void (*Misc_Focus_Restore_Function)(void) = nullptr;