diff options
author | Leonard Kugis <leonard@kug.is> | 2022-04-27 17:28:10 +0000 |
---|---|---|
committer | Leonard Kugis <leonard@kug.is> | 2022-04-27 17:28:10 +0000 |
commit | 432710105944621ed3a10142e2a80ba37c47eb60 (patch) | |
tree | 388852b762a2616e41eddbb9bf342f508a2f264e /src | |
parent | 6d66503311063929faa7212cadbf3cfe8313e496 (diff) | |
download | vr-video-player-432710105944621ed3a10142e2a80ba37c47eb60.tar.gz vr-video-player-432710105944621ed3a10142e2a80ba37c47eb60.tar.bz2 vr-video-player-432710105944621ed3a10142e2a80ba37c47eb60.zip |
Added Makefile
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 2 | ||||
-rw-r--r-- | src/window_texture.c | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp index 3931e74..60d9619 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -32,7 +32,7 @@ // Modified by: DEC05EBA #include <GL/glew.h> -#include "../include/window_texture.h" +#include "window_texture.h" #include <SDL.h> #include <SDL_opengl.h> diff --git a/src/window_texture.c b/src/window_texture.c index 0479254..93b207c 100644 --- a/src/window_texture.c +++ b/src/window_texture.c @@ -64,13 +64,14 @@ int window_texture_on_resize(WindowTexture *self) { GLXPixmap glx_pixmap = None; GLuint texture_id = 0; int glx_pixmap_bound = 0; + float fLargest = 0.f; const int pixmap_config[] = { GLX_BIND_TO_TEXTURE_RGB_EXT, True, GLX_DRAWABLE_TYPE, GLX_PIXMAP_BIT | GLX_WINDOW_BIT, GLX_BIND_TO_TEXTURE_TARGETS_EXT, GLX_TEXTURE_2D_BIT_EXT, /*GLX_BIND_TO_MIPMAP_TEXTURE_EXT, True,*/ - GLX_BUFFER_SIZE, 24, + GLX_BUFFER_SIZE, 24, GLX_RED_SIZE, 8, GLX_GREEN_SIZE, 8, GLX_BLUE_SIZE, 8, @@ -151,8 +152,8 @@ int window_texture_on_resize(WindowTexture *self) { glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE ); glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR ); glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR ); - - float fLargest = 0.0f; + + fLargest = 0.0f; glGetFloatv(GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &fLargest); glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAX_ANISOTROPY_EXT, fLargest); |