Textures not setting properly.

This is a discussion on Textures not setting properly. within the Game Programming forums, part of the General Programming Boards category; I'd swear that I had this fixed before, but appearently not. Or maybe it was fixed, and I somehow broke ...

Those were the class defs. Here are the functions (i'm going to leave out the code for actually creating the texture (CTexture's constructor), to avoid making this post too long. I'm 99% sure that much is correct anyway).

Nevermind, and sorry for pulling the alarm early on this one. The problem had nothing to do with the texturing code. The problem was that SetTexture wasn't being called in my rendering code due to a typo (wrote ">" instead of ">=" when I checked to see if the object had any materials).