From a041e62418a72f0fd379e50263e1c9d2e6c6bb55 Mon Sep 17 00:00:00 2001 From: Philippe Houdoin Date: Sat, 14 Aug 2004 10:27:08 +0000 Subject: Update to Jake Hamby's BeOS GLUT 3.7 port. --- src/glut/beos/glutDstr.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/glut/beos/glutDstr.cpp') diff --git a/src/glut/beos/glutDstr.cpp b/src/glut/beos/glutDstr.cpp index c594cfdafd..281a039701 100644 --- a/src/glut/beos/glutDstr.cpp +++ b/src/glut/beos/glutDstr.cpp @@ -1,5 +1,10 @@ /*********************************************************** - * Copyright (C) 1997, Be Inc. All rights reserved. + * Copyright (C) 1997, Be Inc. Copyright (C) 1999, Jake Hamby. + * + * This program is freely distributable without licensing fees + * and is provided without guarantee or warrantee expressed or + * implied. This program is -not- in the public domain. + * * * FILE: glutDstr.cpp * @@ -46,8 +51,7 @@ glutInitDisplayString(const char *string) * RETURNS: 1 if the current display mode is possible, else 0 ***********************************************************/ int __glutConvertDisplayModeFromString(unsigned long *options) { - ulong newoptions = BGL_DOUBLE; - gState.swapHack = true; // assume single buffered + ulong newoptions = 0; char *word = strtok(gState.displayString, " \t"); do { @@ -66,7 +70,7 @@ int __glutConvertDisplayModeFromString(unsigned long *options) { } else if(!strcmp(word, "depth")) { newoptions |= BGL_DEPTH; } else if(!strcmp(word, "double")) { - gState.swapHack = false; + newoptions |= BGL_DOUBLE; } else if(!strcmp(word, "stencil")) { newoptions |= BGL_STENCIL; } -- cgit v1.2.3