Commit Graph

1822 Commits

Author SHA1 Message Date
twinaphex 71b6485bb5 (PSP) Fix warnings 2014-02-19 17:47:59 +01:00
twinaphex 603484a1da (Thread wrapper) Fix unused variable i warning 2014-02-19 16:30:28 +01:00
twinaphex a788009e7c How nice - geom->base_width and geom->base_height are const, so
we have to put them in local copies first
2014-02-13 15:12:31 +01:00
twinaphex 535f130891 Prevent division by zero in gfx_set_viewport 2014-02-13 15:10:01 +01:00
Hans-Kristian Arntzen 2ab94ad8d1 [Android]: Use ALPHA_SIZE 8.
Avoids weird 24-bit surfaces ...
2014-02-13 12:04:08 +01:00
twinaphex 94d70b6aba (PSP) Hack - Get around FPU exception - division by zero 2014-02-13 11:38:41 +01:00
Hans-Kristian Arntzen 6a6f56a82e Do not reply on CMD_NONE.
Avoids potential deadlock.
2014-02-13 11:20:18 +01:00
Hans-Kristian Arntzen b1a3b94594 Fix command-line for glgen. 2014-02-12 19:05:29 +01:00
Themaister bf1a95459c Remove weird backslash. 2014-02-12 18:55:40 +01:00
Themaister c85b5b9b27 Add glsym README. 2014-02-12 18:54:57 +01:00
twinaphex 7a67e05a66 (glsym_gl.h) Update GLuint64EXT in glsym_gl.h too (BTW - where
is the README explaining how to generate files with glgen.py?)
2014-02-12 18:29:03 +01:00
twinaphex 620bf49081 (OSX) Add GLuint64EXT for OSX version lower than 10.7 (Lion) 2014-02-12 18:21:35 +01:00
Twinaphex ad68ce4c91 Merge pull request #545 from libretro/glgen-update
Update glgen_gl.c/h.
2014-02-12 17:59:01 +01:00
Themaister ef54422379 Avoid temporary garbage data in alpha mod. 2014-02-12 15:53:04 +01:00
Themaister 833259de93 Greatly improve performance with normalized overlays and threaded video.
SET_ALPHA_MOD would previously block on frame completion which only made
sense for non-normalized overlays.

This should also hopefully fix the ANR hang on Android.
2014-02-12 15:40:54 +01:00
Themaister 150ee8d8c2 Update glgen_gl.c/h. 2014-02-11 20:53:46 +01:00
twinaphex b370d3f048 Stub function of null_gfx_restart when HAVE_MENU is defined 2014-02-11 17:10:13 +01:00
twinaphex d4f9c211ee (PSP) Build fixes 2014-02-11 16:10:40 +01:00
twinaphex de0d0626f6 Include boolean.h instead of stdbool.h 2014-02-11 07:49:15 +01:00
twinaphex c42a00a39f (OSX PPC) Change anonymous unions, define GLint64/GLuint64/GLsync
for Leopard and Snow Leopard, other changes..
2014-02-11 16:07:00 +11:00
Tobias Jakobi f3f50daeb4 video_lima: use posix_memalign to request aligned memory
aligned_alloc is deprecated
2014-02-10 14:58:55 +01:00
Tobias Jakobi 3005501184 video_lima: fix some warnings 2014-02-10 14:58:55 +01:00
Tobias Jakobi 605d4f3954 video_lima: slight reduction of font texture size 2014-02-10 14:58:54 +01:00
Tobias Jakobi 72009fe3d7 video_lima: use general align function
introduce in preparation to texture upload optimization
2014-02-10 14:58:54 +01:00
OV2 43b209a5c0 D3D9: use new during init so that constructors are run 2014-02-08 19:56:02 +01:00
Themaister 94a0cef1d4 Fix libretro GL core screenshots. 2014-02-06 23:37:06 +01:00
Themaister 8120198ed8 Make C++ compiler happy. 2014-02-06 22:52:48 +01:00
Themaister 032ba14d3b Properly implement GPU screenshot for GLES.
Have to use GL_RGBA/GL_UNSIGNED_BYTE as well as reading from back buffer
only.
2014-02-06 21:35:57 +01:00
Higor Eurípedes b719c98db6 (griffin.c) Fix build when freetype2 support is enabled
This commit fixes build issues for frontends that wish to use freetype2
or that do not want to use the built-in bitmap font:

* Having HAVE_FREETYPE without DONT_HAVE_BITMAPFONT makes griffin.c
  include both freetype.c and bitmapfont.c resulting in a redefinition
  of 'struct font_renderer' (freetype.c:25 and bitmapfont.c:24).

* Having both HAVE_FREETYPE and DONT_HAVE_BITMAPFONT resulted in linkage
  problems because griffin.c does not include fonts.c in this case and
  thus font_renderer_create_default() implementation is missing. If
  fonts.c is included, the linker complains about undefined reference to
  bitmap_font_renderer in fonts.c:27.
2014-02-05 12:30:55 -03:00
Tobias Jakobi 18e37b2d47 video_lima: set wrap mode to clamp for all textures we use 2014-01-28 03:02:04 +01:00
Tobias Jakobi 6ab202f25f video_lima: whitespace fixes 2014-01-27 23:05:45 +01:00
Tobias Jakobi 9d1090b194 video_lima: remove unused and redundant variables 2014-01-27 23:03:08 +01:00
Tobias Jakobi 8f41e80c61 video_lima: align temp buffer 2014-01-26 04:43:01 +01:00
Tobias Jakobi 4b05426bbe video_lima: add font rendering by using the temp buffer 2014-01-26 04:43:01 +01:00
Tobias Jakobi a338d99781 video_lima: misc fixes 2014-01-26 04:43:00 +01:00
Tobias Jakobi 55fc57b846 video_lima: fix some swizzling in the fragment shader
Thanks to AreaScout for testing this!
2014-01-26 04:43:00 +01:00
Tobias Jakobi 9226c3c783 video_lima: adjust aspect ratio depending on frame dimensions
With this the emulator framebuffer is no longer stretched to the entire
screen. However it's still not entirely correct. For example the aspect
ratio value provided by the frontend is not used yet.
Also I noticed this behaviour: When using the game "Secret of Mana 2"
(unofficial english translation) on the snes9x-next core, the game
normally uses a framebuffer of dimension 256x224. But when rendering
text windows, it increases resolution to 512x224. With the current
behaviour this alters aspect ratio and let's the image "explode"
when text boxes are displayed, only to "implode" again when they close.
This should not happen! (Needs further investigation...)
2014-01-26 04:43:00 +01:00
Tobias Jakobi 7cdb08b804 Add lima video driver
Documentation is provided in README-lima.
2014-01-26 04:43:00 +01:00
Themaister 0b462054ea De-hardcode input drivers in KMS-like drivers. 2014-01-24 10:23:48 +01:00
pinumbernumber 09651cbe21 Hopefully improved detection of third-party dual xinput/dinput pads 2014-01-23 21:57:19 +00:00
Themaister 6c5d481f2d Fix MinGW compile. 2014-01-22 16:39:39 +01:00
Themaister 8c9e1a5f5c Fix some unused function warnings.
Clang 3.4 is more aggressive on this.
2014-01-22 16:39:39 +01:00
twinaphex b480009604 (D3D9) Remove obsolete function d3d_font_msg now 2014-01-18 21:53:40 +01:00
twinaphex 7cbfb14791 (D3D9 PC) Go through font context driver now 2014-01-18 21:51:30 +01:00
twinaphex 13620ab16d (D3D) Split up D3D font code from D3D PC driver into separate font context file 2014-01-18 21:38:21 +01:00
twinaphex 5d34d72ed2 (XDK 360) Clean up xdk360_fonts 2014-01-18 21:32:46 +01:00
twinaphex 7c1f24c861 (D3D) set_resize function bound to D3D context driver 2014-01-18 21:13:08 +01:00
twinaphex 544df55017 (D3D) check_window - check if d3d_quit has been set to true, and if so,
set quit pointer value to true
2014-01-18 21:07:34 +01:00
twinaphex 280b9d5406 (D3D9) Move more code to d3d9_pc context driver 2014-01-18 20:49:57 +01:00
twinaphex ab9d4440db (D3D) Create graphics context driver for D3D and move
state code over to it
2014-01-18 18:43:40 +01:00