Minor bit of cleanup. Also now using glTexGenf instead of glTexGeni for fixed-function water texcoords.
This commit is contained in:
@@ -40,7 +40,6 @@
|
||||
|
||||
#include <vector>
|
||||
|
||||
#define MEM_TYPE_NEW(T)
|
||||
|
||||
class LL_COMMON_API LLMemType
|
||||
{
|
||||
|
||||
@@ -93,7 +93,6 @@ public:
|
||||
}
|
||||
|
||||
LLDrawable() { init(); }
|
||||
MEM_TYPE_NEW(LLMemType::MTYPE_DRAWABLE);
|
||||
|
||||
void markDead(); // Mark this drawable as dead
|
||||
BOOL isDead() const { return isState(DEAD); }
|
||||
|
||||
@@ -414,8 +414,8 @@ void LLDrawPoolWater::renderOpaqueLegacyWater()
|
||||
{
|
||||
glEnable(GL_TEXTURE_GEN_S); //texture unit 0
|
||||
glEnable(GL_TEXTURE_GEN_T); //texture unit 0
|
||||
glTexGeni(GL_S, GL_TEXTURE_GEN_MODE, GL_OBJECT_LINEAR);
|
||||
glTexGeni(GL_T, GL_TEXTURE_GEN_MODE, GL_OBJECT_LINEAR);
|
||||
glTexGenf(GL_S, GL_TEXTURE_GEN_MODE, GL_OBJECT_LINEAR);
|
||||
glTexGenf(GL_T, GL_TEXTURE_GEN_MODE, GL_OBJECT_LINEAR);
|
||||
}
|
||||
|
||||
// Use the fact that we know all water faces are the same size
|
||||
|
||||
@@ -133,7 +133,6 @@ public:
|
||||
typedef const child_list_t const_child_list_t;
|
||||
|
||||
LLViewerObject(const LLUUID &id, const LLPCode type, LLViewerRegion *regionp, BOOL is_global = FALSE);
|
||||
MEM_TYPE_NEW(LLMemType::MTYPE_OBJECT);
|
||||
|
||||
virtual void markDead(); // Mark this object as dead, and clean up its references
|
||||
BOOL isDead() const {return mDead;}
|
||||
|
||||
Reference in New Issue
Block a user