Shader first pass
This commit is contained in:
@@ -21,6 +21,11 @@ errorret_t displaySDL2Init(void) {
|
||||
|
||||
// Set OpenGL attributes (Needs to be done now or later?)
|
||||
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
|
||||
// SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24);
|
||||
// SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 8);
|
||||
|
||||
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
|
||||
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 3);
|
||||
|
||||
// Create window with OpenGL flag.
|
||||
DISPLAY.window = SDL_CreateWindow(
|
||||
@@ -44,7 +49,6 @@ errorret_t displaySDL2Init(void) {
|
||||
errorChain(errorGLCheck());
|
||||
|
||||
SDL_GL_SetSwapInterval(1);
|
||||
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24);
|
||||
errorChain(errorGLCheck());
|
||||
|
||||
errorChain(displayOpenGLInit());
|
||||
@@ -82,6 +86,9 @@ errorret_t displaySDL2Update(void) {
|
||||
}
|
||||
|
||||
SDL_GL_MakeCurrent(DISPLAY.window, DISPLAY.glContext);
|
||||
|
||||
// errorChain(shaderPaletteTextureBindGL(&testShader));
|
||||
|
||||
errorOk();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user