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:
@@ -39,7 +39,7 @@
|
||||
#include "llviewerparcelmgr.h"
|
||||
#include "lluuid.h"
|
||||
#include "message.h"
|
||||
#include "llviewerimagelist.h" // for texture stats
|
||||
#include "llviewertexturelist.h" // for texture stats
|
||||
#include "llagent.h"
|
||||
|
||||
const F32 AUTOPLAY_TIME = 5; // how many seconds before we autoplay
|
||||
@@ -113,13 +113,13 @@ BOOL LLViewerParcelMediaAutoPlay::tick()
|
||||
{
|
||||
if (this_media_texture_id.notNull()) // and if the media texture is good
|
||||
{
|
||||
LLViewerImage *image = gImageList.getImage(this_media_texture_id, FALSE);
|
||||
LLViewerTexture *image = LLViewerTextureManager::getFetchedTexture(this_media_texture_id, FALSE);
|
||||
|
||||
F32 image_size = 0;
|
||||
|
||||
if (image)
|
||||
{
|
||||
image_size = image->mMaxVirtualSize;
|
||||
image_size = image->getMaxVirtualSize();
|
||||
}
|
||||
|
||||
if (gAgent.getVelocity().magVec() < AUTOPLAY_SPEED) // and if the agent is stopped (slow enough)
|
||||
|
||||
Reference in New Issue
Block a user