Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 07-21-09, 04:14 AM   #1
smileyj
Registered User
 
Join Date: Oct 2005
Posts: 1
Default bug report: glext.h wrong return type for glMapBufferRange

The return type for glMapBufferRange in glext.h should be "GLvoid* rather than its current "void". The problem exists in the header shipped with the 185.18.14 and 180.37.05 (OpenGL 3.0/3.1) packages.

glMapBufferRange moved from being an extension to being a core function in OpenGL 3.0.

I've attached a patch for the version of glext.h shipped with 185.18.14 that seems to work for me:

$ sh NVIDIA-Linux-x86_64-185.18.14-pkg2.run --extract-only
Creating directory NVIDIA-Linux-x86_64-185.18.14-pkg2
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 185.18.14......................................... .................................................. .................................................. .............
$ emacs NVIDIA-Linux-x86_64-185.18.14-pkg2/usr/include/GL/glext.h
$ diff -u NVIDIA-Linux-x86_64-185.18.14-pkg2/usr/include/GL/glext.h{~,}

[output attached]
Attached Files
File Type: txt glext-h-map-buffer-range-patch.txt (970 Bytes, 165 views)
smileyj is offline   Reply With Quote
Old 01-19-10, 01:58 AM   #2
Funto
Registered User
 
Join Date: Jan 2010
Posts: 11
Default Re: bug report: glext.h wrong return type for glMapBufferRange

I just installed NVIDIA drivers 190.53 and the bug is still not resolved...
Funto is offline   Reply With Quote
Old 01-19-10, 03:42 PM   #3
AaronP
NVIDIA Corporation
 
AaronP's Avatar
 
Join Date: Mar 2005
Posts: 2,487
Default Re: bug report: glext.h wrong return type for glMapBufferRange

It's fixed in 195.30.
AaronP is offline   Reply With Quote
Old 01-19-10, 06:42 PM   #4
Funto
Registered User
 
Join Date: Jan 2010
Posts: 11
Default Re: bug report: glext.h wrong return type for glMapBufferRange

OK; in fact it seems that the installation script did not update /usr/include/GL/glext.h.
It was outdated, and a lot of functions from GL3 were not here...

Installing the version from opengl.org solved the problem, but still the installer did not update it...
Funto is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 05:23 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.