octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #44478] test __osmesa_print__.cc-tst crashes o


From: Rik
Subject: [Octave-bug-tracker] [bug #44478] test __osmesa_print__.cc-tst crashes on Ubuntu with Nvidia drivers
Date: Thu, 12 Mar 2015 17:47:43 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:36.0) Gecko/20100101 Firefox/36.0

Follow-up Comment #22, bug #44478 (project octave):

@Jose: Are you using Mercurial sources or the 4.0.0-rc1 tarball?

Actually, what I want to know is what is line 160 in
dldfcn/__osmesa_print__.cc?

Is it


glGetIntegerv (GL_STENCIL_BITS, &s);


The depth buffer and stencil buffer are optional.  It may be that we need to
initialize them first before querying.  For example, calling


glEnable (GL_DEPTH_TEST)
glEnable (GL_STENCIL_TEST)


before the glGetIntegerv.  On the other hand, all of this code is just doing
version testing on OSMESA


  // Test for a bug in OSMesa with version < 9.0
  //
  // Unfortunately the macros OSMESA_MAJOR_VERSION and OSMESA_MINOR_VERSION
  // weren't updated between many releases and can't be used for detection.
  // (Version 8.0 until 9.1.4 all return MAJOR 6, MINOR 5)
  GLint z, s;
  glGetIntegerv (GL_DEPTH_BITS, &z);
  glGetIntegerv (GL_STENCIL_BITS, &s);
  if (z != 16 || s != 0)
    error ("__osmesa_print__: Depth and stencil doesn't match,"
           " are you sure you are using OSMesa >= 9.0?");


Is there some other way we could do this testing that would avoid all of?


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?44478>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]