Jump to content
Posted 23 November 2012 - 02:54 PM
Posted 23 November 2012 - 03:57 PM
Posted 23 November 2012 - 04:15 PM
I am not sure about this, but I believe gluBuild2DMipmaps does not accept cube map faces as texture targets and thus cannot build cube map faces. If this is the case, then your call to gluBuild2DMipmaps will fail and thus leave the texture object in an incomplete, and therefore invalid, state since you have specified the minification filtering as a mipmap filter but only provided the base level texture. Either don't use mipmap filtering, or generate your mipmaps with the current glGenerateMipmap function instead.
Posted 23 November 2012 - 04:31 PM
Posted 23 November 2012 - 06:31 PM
I don't see anything obvious other than what I mentioned. Check for errors codes to see if anything is wrong. Keep in mind that some functions indicate errors by return value instead of an error state from glGetError, such as querying a uniform location, so make sure you check return values for functions as well.
Edited by PAndersson, 23 November 2012 - 06:53 PM.
Posted 23 November 2012 - 07:10 PM
Edited by PAndersson, 23 November 2012 - 07:54 PM.
Posted 24 November 2012 - 05:50 AM
Posted 27 November 2012 - 06:42 PM
So if you use that exact code and just comment out one of the two texture samplers, then it stops working? Reduce your application to an absolute minimum and show the complete code.
Posted 30 November 2012 - 06:16 PM
Edited by PAndersson, 30 November 2012 - 06:19 PM.