Skip to content

Commit

Permalink
added Dreamcast specific texture formats to convert_format in the ope…
Browse files Browse the repository at this point in the history
…ngl hardware render driver for use with GLdc with new glTexSubImage2D function. Added 50hz/60hz selector from SDL 1.2, added more video framebuffer screen formats.
  • Loading branch information
GPF committed Oct 24, 2024
1 parent 719a992 commit 14f3e7b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/video/dreamcast/SDL_dreamcastvideo.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ void SDL_DC_ShowAskHz(SDL_bool value)
void SDL_DC_Default60Hz(SDL_bool value)
{
sdl_dc_default_60hz=value;
}
}//Custom code for 60Hz
static int sdl_dc_no_ask_60hz=0;
static int sdl_dc_default_60hz=0;
/* Initialization/Query functions */
static int DREAMCAST_VideoInit(_THIS);
static void DREAMCAST_VideoQuit(_THIS);
Expand Down
4 changes: 3 additions & 1 deletion test/dreamcast/test/nehe06/nehe06.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ void LoadGLTextures() {
}


void InitGL(int Width, int Height) {
/* A general OpenGL initialization function. Sets all of the initial parameters. */
void InitGL(int Width, int Height) // We call this right after our OpenGL window is created.
{
glViewport(0, 0, Width, Height);
LoadGLTextures();
glEnable(GL_TEXTURE_2D);
Expand Down

0 comments on commit 14f3e7b

Please sign in to comment.