Are there any known issues with NVidia cards and openGL textures? I’ve developed an opengl activex control in VB6 that displays terrain data and allows for draping a topographical image over the surface. The problem is that on some cards (the one I’m using is an NVidia GeForce 4200 Go (Dell Mobile)), the textures show up completely gray. Additionally, when the user rotates or zooms the scene, I generate a 2D texture of the scene so that it can be displayed while a wireframe box rotates with the mouse movement (to keep from having to render the entire scene during navigation). This texture is only displayed on some graphics cards as well, and on others (like my NVidia) the background is just white.
Is there anything I can do to show the textures properly on all graphics cards? I can provide sample code if needed.
If you look at the gl.h header, you will see that this error code means GL_INVALID_OPERATION.
That is the operation is not allowed in the current state.
Are you sure it is only the glEnd that triggers this error ?
Nothing seems wrong in the code you provide, even if I do not understand what are ‘bmQuads’,tetTextureEnv, tenTextureEnvMode, tepDecal, etc.
Are you sure you specify a power of two texture ? correct format ?