Innitial commit of experimental v2 texture system port work. Compiles and runs on windows, at least. Fixing bugs as they come.
Need to test: localassetbrowser preview related floaters hgfloatertexteditor maps media textures! Currently very hacky web browser alpha masks on avatars bumpmaps Are all sky components appearing? LLViewerDynamicTexture (texture baking, browser, animated textures, anim previews, etc) Snapshot related features Customize avatar vfs floater UI textures in general Texture priority issues
This commit is contained in:
@@ -73,8 +73,7 @@
|
||||
#include "lltrans.h"
|
||||
#include "llviewercontrol.h"
|
||||
#include "lluictrlfactory.h"
|
||||
#include "llviewerimage.h"
|
||||
#include "llviewerimagelist.h"
|
||||
#include "llviewertexturelist.h"
|
||||
#include "llviewerregion.h"
|
||||
#include "llviewerstats.h"
|
||||
#include "llviewertexteditor.h"
|
||||
@@ -1140,11 +1139,11 @@ BOOL LLPanelRegionTextureInfo::validateTextureSizes()
|
||||
if (!texture_ctrl) continue;
|
||||
|
||||
LLUUID image_asset_id = texture_ctrl->getImageAssetID();
|
||||
LLViewerImage* img = gImageList.getImage(image_asset_id);
|
||||
LLViewerTexture* img = LLViewerTextureManager::getFetchedTexture(image_asset_id);
|
||||
S32 components = img->getComponents();
|
||||
// Must ask for highest resolution version's width. JC
|
||||
S32 width = img->getWidth(0);
|
||||
S32 height = img->getHeight(0);
|
||||
S32 width = img->getFullWidth();
|
||||
S32 height = img->getFullHeight();
|
||||
|
||||
//llinfos << "texture detail " << i << " is " << width << "x" << height << "x" << components << llendl;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user