summaryrefslogtreecommitdiffstats
path: root/hacks/glx/lockward.c
diff options
context:
space:
mode:
authorSimon Rettberg2019-02-18 11:55:41 +0100
committerSimon Rettberg2019-02-18 11:55:41 +0100
commitae69a754244c4e475c8d2591772ca8e005071d83 (patch)
tree58b3fa7abc2dcfe3c23e1c0ce108950c720826ab /hacks/glx/lockward.c
parentUpdate gitignore (diff)
downloadxscreensaver-ae69a754244c4e475c8d2591772ca8e005071d83.tar.gz
xscreensaver-ae69a754244c4e475c8d2591772ca8e005071d83.tar.xz
xscreensaver-ae69a754244c4e475c8d2591772ca8e005071d83.zip
Update to 5.42
Diffstat (limited to 'hacks/glx/lockward.c')
-rw-r--r--hacks/glx/lockward.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/hacks/glx/lockward.c b/hacks/glx/lockward.c
index f15374b..2bd87e9 100644
--- a/hacks/glx/lockward.c
+++ b/hacks/glx/lockward.c
@@ -213,8 +213,7 @@ reshape_lockward (ModeInfo *mi, int width, int height)
h = height / (GLfloat) width;
}
- glXMakeCurrent (MI_DISPLAY (mi), MI_WINDOW (mi),
- *(ctx->glx_context));
+ glXMakeCurrent (MI_DISPLAY (mi), MI_WINDOW (mi), *ctx->glx_context);
glViewport (0, y, (GLint) width, (GLint) height);
@@ -734,7 +733,7 @@ draw_lockward (ModeInfo *mi)
if (!ctx->glx_context)
return;
- glXMakeCurrent (MI_DISPLAY (mi), MI_WINDOW (mi), *(ctx->glx_context));
+ glXMakeCurrent (MI_DISPLAY (mi), MI_WINDOW (mi), *ctx->glx_context);
glClear (GL_COLOR_BUFFER_BIT);
@@ -937,11 +936,8 @@ free_lockward (ModeInfo *mi)
lockward_context *ctx = &g_ctx[MI_SCREEN (mi)];
int i;
- if (!ctx->glx_context)
- return;
-
- glXMakeCurrent (MI_DISPLAY (mi), MI_WINDOW (mi),
- *(ctx->glx_context));
+ if (!ctx->glx_context) return;
+ glXMakeCurrent (MI_DISPLAY (mi), MI_WINDOW (mi), *ctx->glx_context);
if (ctx->blink.noise)
free (ctx->blink.noise);