[visionegg] Re: max priority error
- From: Andrew Straw <andrew.straw@xxxxxxxxxxxxxxx>
- To: visionegg@xxxxxxxxxxxxx
- Date: Tue, 3 Dec 2002 08:43:48 +1030
Hi Christoph,
I've just found a bug in "check_gl_assumptions()" of VisionEgg.Core
which I think may be part of the problem. (Could you please include a
traceback next time?) I can't access CVS at the moment to check in my
fix, but if you change "check_gl_assumptions()" your Core.py to the
following, it should solve that problem. I will check this into CVS as
soon as I can.
******************************
def check_gl_assumptions():
"""Called by Screen instance. Requires OpenGL context to be
created."""
for gl_variable,required_value,failure_callback in gl_assumptions:
# Code required for each variable to be checked
if string.upper(gl_variable) == "GL_VENDOR":
value =
string.split(string.lower(gl.glGetString(gl.GL_VENDOR)))[0]
if value != required_value:
failure_callback()
elif string.upper(gl_variable) == "GL_VERSION":
value_str = string.split(gl.glGetString(gl.GL_VERSION))[0]
value_ints = map(int,string.split(value_str,'.'))
value = float( str(value_ints[0]) + "." +
string.join(map(str,value_ints[1:]),''))
if value < required_value:
failure_callback()
******************************
Cheers!
Andrew
On Monday, December 2, 2002, at 10:10 PM, Christoph Lehmann wrote:
>
> running VE as root with max priority I get:
>
> execption: "failure_string" not defined
>
> ?
> thanks
>
> christoph
>
> --
> Christoph Lehmann
> Department of Psychiatric Neurophysiology
> University Hospital of Clinical Psychiatry
> Waldau
> CH-3000 Bern 60
> Switzerland
>
> Phone: ++41 31 930 93 83
> Fax: ++41 31 930 96 61
> Email: lehmann@xxxxxxxxxxxx
> Web:
>
> ======================================
> The Vision Egg mailing list
> Archives: http://www.freelists.org/archives/visionegg
> Website: http://www.visionegg.org/mailinglist.html
======================================
The Vision Egg mailing list
Archives: http://www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html
- Follow-Ups:
- [visionegg] Re: max priority error
- From: Andrew Straw
Other related posts:
- » [visionegg] Re: max priority error
- » [visionegg] Re: max priority error
- [visionegg] Re: max priority error
- From: Andrew Straw