Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
04410346
Commit
04410346
authored
Aug 21, 2018
by
elasota
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Squish SSE misconfiguration
parent
0e6551d8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
6 deletions
+20
-6
image_compress_squish.cpp
modules/squish/image_compress_squish.cpp
+0
-6
config.h
thirdparty/squish/config.h
+20
-0
No files found.
modules/squish/image_compress_squish.cpp
View file @
04410346
...
...
@@ -32,12 +32,6 @@
#include "print_string.h"
#if defined(__SSE2__)
#define SQUISH_USE_SSE 2
#elif defined(__SSE__)
#define SQUISH_USE_SSE 1
#endif
#include <squish.h>
void
image_decompress_squish
(
Image
*
p_image
)
{
...
...
thirdparty/squish/config.h
View file @
04410346
...
...
@@ -32,6 +32,26 @@
#endif
// Set to 1 or 2 when building squish to use SSE or SSE2 instructions.
// -- GODOT start --
#ifdef _MSC_VER
#if defined(_M_IX86_FP)
#if _M_IX86_FP >= 2
#define SQUISH_USE_SSE 2
#elif _M_IX86_FP >= 1
#define SQUISH_USE_SSE 1
#endif
#elif defined(_M_X64)
#define SQUISH_USE_SSE 2
#endif
#else
#if defined(__SSE2__)
#define SQUISH_USE_SSE 2
#elif defined(__SSE__)
#define SQUISH_USE_SSE 1
#endif
#endif
// -- GODOT end --
#ifndef SQUISH_USE_SSE
#define SQUISH_USE_SSE 0
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment