This is Xamarin's bug tracking system. For product support, please use the support links listed in your Xamarin Account.
Bug 12401 - GL.DeleteTexture is missing uint overload
: GL.DeleteTexture is missing uint overload
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS / monotouch
: 6.2.x
: Macintosh Mac OS
: Normal normal
: Untriaged
Assigned To: Rolf Bjarne Kvinge
  Show dependency treegraph
Reported: 2013-05-27 05:48 EDT by Jonas Sourlier
Modified: 2013-06-17 07:40 EDT (History)
4 users (show)

See Also:


Description Jonas Sourlier 2013-05-27 05:48:06 EDT
The method

GL.DeleteTexture(int textureId)

accepts only an int-typed texture ID. However, other OpenGL ES methods like
BindTexture operate with uint IDs exclusively. Other methods like GenTextures
accept both uint and int values.

See also
Comment 1 Rolf Bjarne Kvinge 2013-05-31 06:42:02 EDT
It looks like this is an upstream bug:

Only the int overload is present in that file.

I filed an upstream bug about this:
Comment 2 Rolf Bjarne Kvinge 2013-05-31 06:56:54 EDT
In any case I went ahead and fix this in our opentk clone.

opentk: bea28e54e19ec625f3a272e3db935d292c63874a
monotouch: a52ff4ad706ecda8eb87ee2271507d68979c0e60
Comment 3 narayanp 2013-06-17 07:36:34 EDT
To verify this issue we have opened GLPaint-GameView application and tried to
add code "GL.DeleteTexture (uint TextureUnit ) and GL.Deletetexture (int
TextureUnit)" and we are successfully able to use 'uint'. This is the
screencast for the same:

X.S 4.0.7-1
Xamarin.iOS 6.3.6-76
Mono 3.0.11

Changing the status to Verified.
Comment 4 Jonas Sourlier 2013-06-17 07:40:48 EDT
:D the way you're 'verifying' it, you could also pass string variables or
elephants to OpenGL..

Note You need to log in before you can comment on or make changes to this bug.