Преглед на файлове

build: a few iOS build fixes; nowhere near ready though.

legacy
Sam Hocevar sam преди 11 години
родител
ревизия
1b07850346
променени са 2 файла, в които са добавени 15 реда и са изтрити 1 реда
  1. +14
    -0
      build/autotools/m4/lol-gl.m4
  2. +1
    -1
      src/image/codec/ios-image.cpp

+ 14
- 0
build/autotools/m4/lol-gl.m4 Целия файл

@@ -21,6 +21,20 @@ if test "x${ac_cv_my_stop_looking_for_gl}" = "xno"; then
LIBS="$LIBS_save"
fi

if test "x${ac_cv_my_stop_looking_for_gl}" = "xno"; then
LIBS_save="$LIBS"
LIBS="$LIBS -Wl,-framework -Wl,OpenGLES"
AC_MSG_CHECKING(for -framework OpenGLES)
AC_TRY_LINK([], [],
[AC_MSG_RESULT(yes)
ac_cv_my_have_gl="yes"
GL_LIBS="${GL_LIBS} -framework OpenGLES"
LOL_TRY_CXXFLAGS(-ObjC++, [CXXFLAGS="${CXXFLAGS} -ObjC++"])
AC_DEFINE(HAVE_GLES_2X, 1, Define to 1 if GLES 2.x is available)],
[AC_MSG_RESULT(no)])
LIBS="$LIBS_save"
fi

dnl Use the Raspberry Pi libraries?
if test "x${ac_cv_my_stop_looking_for_gl}" = "xno"; then
AC_CHECK_HEADERS(bcm_host.h,


+ 1
- 1
src/image/codec/ios-image.cpp Целия файл

@@ -65,7 +65,7 @@ bool IosImageData::Open(char const *path)
int w = CGImageGetWidth(image.CGImage);
int h = CGImageGetHeight(image.CGImage);
size = ivec2(w, h);
format = FORMAT_RGBA;
format = Image::FORMAT_RGBA;

CGColorSpaceRef cspace = CGColorSpaceCreateDeviceRGB();
pixels = (uint8_t *)malloc(w * h * 4);


Зареждане…
Отказ
Запис