Permalink
Browse files

- moved the span and swtruecolor creation code into FSoftwareTexture.

  • Loading branch information...
coelckers committed Dec 6, 2018
1 parent 32e245f commit 4c67785c4022983919d86c25d66559a6b5b8193c
@@ -681,6 +681,7 @@ file( GLOB HEADER_FILES
sound/wildmidi/*.h
xlat/*.h
swrenderer/*.h
swrenderer/textures/*.h
swrenderer/drawers/*.h
swrenderer/scene/*.h
swrenderer/segments/*.h
@@ -1244,6 +1245,7 @@ set (PCH_SOURCES
sound/wildmidi/reverb.cpp
sound/wildmidi/wildmidi_lib.cpp
sound/wildmidi/wm_error.cpp
swrenderer/textures/r_swtexture.cpp
events.cpp
)
@@ -1,3 +1,4 @@
#include "../swrenderer/textures/r_swtexture.h"
#include "poly_renderer.cpp"
#include "poly_renderthread.cpp"
#include "drawers/poly_buffer.cpp"
@@ -1,3 +1,4 @@
#include "textures/r_swtexture.h"
#include "r_memory.cpp"
#include "r_renderthread.cpp"
#include "r_swrenderer.cpp"
@@ -84,7 +84,7 @@ void FSoftwareRenderer::PrecacheTexture(FTexture *ttex, int cache)
{
bool isbgra = V_IsTrueColor();
if (ttex != NULL)
if (ttex != NULL && ttex->isValid())
{
FSoftwareTexture *tex = ttex->GetSoftwareTexture();
if (cache & FTextureManager::HIT_Columnmode)
Oops, something went wrong.

0 comments on commit 4c67785

Please sign in to comment.