Vladimír Vondruš
e747c9b5b6
GCC 4.5 compatibility: ICE and miscompiled binary operators.
...
It seems that in this particular case `a &= b` is not doing the same as
`a = a & b`. In Release build the expression is miscompiled (it
always resets `a` to zero), in Debug build it triggers ICE:
Object.hpp:280:9: internal compiler error: in make_decl_rtl, at varasm.c:1318
Possibly related to http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43880 .
Changed to `a = a & b` in all cases, now SceneGraphObject test passes
again. Outside of Object (e.g. in Corrade's EnumSet tests) this is not
reproducible, wtf.
Moreover, classic solution, `-fno-strict-aliasing` didn't help at all
here. Probably caused by some other optimization, IMHO.
13 years ago
Vladimír Vondruš
78b650400c
Merge branch 'master' into compatibility
13 years ago
Vladimír Vondruš
771968c69a
Shaders: forgot this.
...
Follow up to 2eb4e3c8ba . Damn.
13 years ago
Vladimír Vondruš
e35b82ba9b
Platform: forgot this.
...
Also the message in 883600e373 should say
"Make Configuration constructors _implicit_". Damn.
13 years ago
Vladimír Vondruš
d89e3a9a5a
GCC 4.5 compatibility: some explicit typing needed.
13 years ago
Vladimír Vondruš
112727e7c1
Merge branch 'master' into compatibility
13 years ago
Vladimír Vondruš
0a9b9b6270
Trade: hide unused parameter.
13 years ago
Vladimír Vondruš
d6ec398539
GCC 4.4 compatibility: some explicit typing needed.
13 years ago
Vladimír Vondruš
a37ffd510c
GCC 4.4 compatibility: can't default this, again.
13 years ago
Vladimír Vondruš
d696500933
Merge branch 'master' into compatibility
13 years ago
Vladimír Vondruš
231aaeb4aa
Platform: documentation updates.
...
It looks much better now without all that explicit/implicit deletion.
13 years ago
Vladimír Vondruš
883600e373
Platform: make Configuration constructors explicit.
...
As it now isn't passed by pointer, this allows doing things like this:
/* Lost all hope in this hardware */
if(!awesomeFeatureSupported)
createContext({});
13 years ago
Vladimír Vondruš
0bd2898972
GCC 4.5 compatibility: some explicit typing needed.
13 years ago
Vladimír Vondruš
3e8d8bb61a
GCC 4.5 compatibility: can't default this, again.
13 years ago
Vladimír Vondruš
e5394fb838
GCC 4.5 compatibility: more nullptr-related issues.
13 years ago
Vladimír Vondruš
6459c9c8c0
GCC 4.5 compatibility: can't default protected member in class body.
13 years ago
Vladimír Vondruš
fe91f02549
GCC 4.5 compatibility: nullptr-related issues.
13 years ago
Vladimír Vondruš
08c36ab6e5
GCC 4.5 compatibility: 4.5 and >4.5 have mutually exclusive requirements.
13 years ago
Vladimír Vondruš
ade77eaf2e
Merge branch 'master' into compatibility
...
Conflicts:
src/DebugTools/ShapeRenderer.cpp
src/Trade/AbstractImageConverter.cpp
src/Trade/MeshData2D.cpp
src/Trade/MeshData3D.cpp
13 years ago
Vladimír Vondruš
4222d8a297
Platform: pass application configuration via reference, not pointer.
...
Removes the need for explicit new/delete calls.
13 years ago
Vladimír Vondruš
aacb6b7041
Trade: return references, not pointers from MeshData.
...
The access methods assert that the user is querying only available data.
Also updated Primitives implementation to create MeshData when
everything is done, not creating empty MeshData and then shooting the
data through interface intended for end users.
13 years ago
Vladimír Vondruš
1d6015e95b
Trade: pass ImageReference2D to image converter.
...
Also not through pointer, but throught const&, allows implicit
conversion from Image2D and Trade::ImageData2D, which is good.
Bumped plugin interface version a bit, as this is not so drastic change
in behavior.
13 years ago
Vladimír Vondruš
2eb4e3c8ba
Removed default template argument from DimensionTraits.
...
It's not obvious what should be the default and thus it is confusing.
Sometimes Int, sometimes Float, no clear winner.
13 years ago
Vladimír Vondruš
4197e1688a
Shapes: WHY there is that.
13 years ago
Vladimír Vondruš
0f2a1661d9
SceneGraph: use protected destructor rather than pure virtual one.
...
The Transformation classes are always instantiated by inheritance, thus
we don't need any virtual deletion capabilities.
13 years ago
Vladimír Vondruš
9eaf928c49
Merge branch 'master' into compatibility
13 years ago
Vladimír Vondruš
30b580eae9
Text: added bug description.
...
Not causing any harm currently, will fix it when needed.
13 years ago
Vladimír Vondruš
d820293ab6
FindMagnum.cmake: use ${LIB_SUFFIX} properly.
...
CorradeLibSuffix.cmake wasn't included at all, thus no convenient
autodetection was done.
13 years ago
Vladimír Vondruš
2f19497b39
Platform: hide the <embed> in magnum-info even better.
...
The content was placed outside the frame, causing pain and eyesore.
13 years ago
Vladimír Vondruš
ce52947297
Platform: don't forget to install also the CSS file.
13 years ago
Vladimír Vondruš
824033b964
Merge branch 'master' into compatibility
13 years ago
Vladimír Vondruš
106921ac99
Platform: improve magnum-info in NaCl, add reusable JS and CSS files.
...
The page now displays download progress, last error and also hints to
the user that JS console might contain something useful. NaClApplication
and WindowlessNaClApplication documentation has been updated with brief
"bootstrap guide".
13 years ago
Vladimír Vondruš
6a52e64d71
Doxygen fixes.
13 years ago
Vladimír Vondruš
0a51633b0a
Added TODO.
13 years ago
Vladimír Vondruš
e8e94d86f5
Platform: minor CMakeLists.txt cleanup.
13 years ago
Vladimír Vondruš
4c1f226544
Warn about improper Buffer target hint in NaCl.
...
Slightly eases up the porting.
13 years ago
Vladimír Vondruš
a403a7f288
Shaders: make GLSL code for fullscreen triangle reusable.
...
Now you can just add the file and call `fullScreenTriangle()`.
13 years ago
Vladimír Vondruš
f0b7489554
Text: fix and improve format checking of passed image in DFGlyphCache.
13 years ago
Vladimír Vondruš
ec467e4099
Shaders: `range` is reserved keyword in GLSL.
...
Neither desktop GL nor GLES on my NVidia complained. Just Chrome didn't
like it.
13 years ago
Vladimír Vondruš
6f0471a7e0
Text: add one more GlyphCache constructor combination.
13 years ago
Vladimír Vondruš
db8e3dd556
Text: call proper Buffer unmapping function.
...
The buffer was mapped with mapSub(), we need to unmap it with
unmapSub().
13 years ago
Vladimír Vondruš
955586b178
TextureTools: use `layout(binding = ...)` only if GLSL supports it.
13 years ago
Vladimír Vondruš
649125e38f
Merge branch 'master' into compatibility
13 years ago
Vladimír Vondruš
4752166097
Text: use CHROMIUM_map_sub rather than OES_mapbuffer.
...
OES_mapbuffer isn't available in (my) NaCl anyway and CHROMIUM_map_sub
should be faster.
13 years ago
Vladimír Vondruš
fbdbd4aa01
Implemented CHROMIUM_map_sub for Buffer.
13 years ago
Vladimír Vondruš
dbe31b15b3
Added CHROMIUM_map_sub NaCl-specific ES2 extension to the list.
13 years ago
Vladimír Vondruš
768f3011dd
Merge branch 'master' into compatibility
...
Conflicts:
CMakeLists.txt
modules/FindCorrade.cmake
13 years ago
Vladimír Vondruš
9a8ec588dc
Text: fallback to OES_mapbuffer if EXT_map_buffer_range is not supported.
...
The renderer emits warning about crappy hardware, similarly to what
GlyphCache does.
13 years ago
Vladimír Vondruš
37621d7741
Updated FindCorrade.cmake from Corrade repository.
13 years ago
Vladimír Vondruš
9dc99ed552
No need to explicitly specify static build for NaCl's newlib.
...
It is enabled by default.
13 years ago