mirror of https://github.com/stella-emu/stella.git
Fixed missing initialization of FBSurface attributes.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2892 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
parent
d04c42580b
commit
38b586ae7b
|
@ -58,6 +58,8 @@ FBSurfaceSDL2::FBSurfaceSDL2(FrameBufferSDL2& buffer,
|
|||
SDL_memcpy(myStaticData, data, mySurface->w * mySurface->h * 4);
|
||||
}
|
||||
|
||||
applyAttributes(false);
|
||||
|
||||
// To generate texture
|
||||
reload();
|
||||
}
|
||||
|
|
|
@ -27,6 +27,11 @@ FBSurface::FBSurface()
|
|||
{
|
||||
// NOTE: myPixels and myPitch MUST be set in child classes that inherit
|
||||
// from this class
|
||||
|
||||
// Set default attributes
|
||||
myAttributes.smoothing = false;
|
||||
myAttributes.blending = false;
|
||||
myAttributes.blendalpha = 100;
|
||||
}
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
|
Loading…
Reference in New Issue