mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-01 03:53:37 +00:00
[client] FRAME_TYPE_INVALID is never a valid type to compare
This commit is contained in:
parent
79c565f114
commit
8140d347ff
1 changed files with 3 additions and 1 deletions
|
@ -80,6 +80,8 @@ void compFunc_BLACK_RLE(uint8_t * dst, const uint8_t * src, const size_t len)
|
|||
inline bool areFormatsSame(const struct KVMGFXHeader s1, const struct KVMGFXHeader s2)
|
||||
{
|
||||
return
|
||||
(s1.frameType != FRAME_TYPE_INVALID) &&
|
||||
(s2.frameType != FRAME_TYPE_INVALID) &&
|
||||
(s1.version == s2.version ) &&
|
||||
(s1.frameType == s2.frameType) &&
|
||||
(s1.compType == s2.compType ) &&
|
||||
|
@ -218,7 +220,7 @@ int renderThread(void * unused)
|
|||
}
|
||||
|
||||
// if the format is invalid or it has changed
|
||||
if (format.frameType == FRAME_TYPE_INVALID || !areFormatsSame(format, *state.shm))
|
||||
if (!areFormatsSame(format, *state.shm))
|
||||
{
|
||||
if (texture)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue