Remove xf86vmode dependency
This commit is contained in:
parent
ed7eff92f8
commit
23ca4b1821
@ -8,7 +8,7 @@ LOCAL_STATIC_LIBRARIES := etk libfreetype tinyxml libzip libpng
|
||||
LOCAL_C_INCLUDES := -I$(LOCAL_PATH)
|
||||
|
||||
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)
|
||||
LOCAL_EXPORT_LDLIBS := -lGL -lGLU -lz -lX11 -lXxf86vm
|
||||
LOCAL_EXPORT_LDLIBS := -lGL -lGLU -lz -lX11
|
||||
|
||||
LOCAL_CFLAGS := -D__PLATFORM__Linux \
|
||||
-Wno-write-strings \
|
||||
@ -29,7 +29,7 @@ LOCAL_SRC_FILES := \
|
||||
#for freetype : https://github.com/cdave1/freetype2-android
|
||||
|
||||
# Ewol Test Software :
|
||||
LOCAL_LDLIBS := -lGL -lGLU -lz -lX11 -lXxf86vm
|
||||
LOCAL_LDLIBS := -lGL -lGLU -lz -lX11
|
||||
|
||||
|
||||
include $(BUILD_STATIC_LIBRARY)
|
||||
|
@ -36,12 +36,8 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <GL/gl.h>
|
||||
#include <GL/glu.h>
|
||||
#include <GL/glut.h>
|
||||
#include <GL/glx.h>
|
||||
#include <X11/Xatom.h>
|
||||
#include <X11/extensions/xf86vmode.h>
|
||||
#include <sys/times.h>
|
||||
|
||||
|
||||
@ -158,20 +154,15 @@ bool CreateX11Context(void)
|
||||
EWOL_INFO("Display opened.");
|
||||
}
|
||||
int Xscreen = DefaultScreen(m_display);
|
||||
{
|
||||
int32_t vmMajor, vmMinor;
|
||||
XF86VidModeQueryVersion(m_display, &vmMajor, &vmMinor);
|
||||
EWOL_INFO("XF86 VideoMode extension version " << vmMajor << "." << vmMinor);
|
||||
}
|
||||
// get an appropriate visual
|
||||
m_visual = glXChooseVisual(m_display, Xscreen, attrListDbl);
|
||||
if (NULL == m_visual) {
|
||||
m_visual = glXChooseVisual(m_display, Xscreen, attrListSgl);
|
||||
m_doubleBuffered = false;
|
||||
EWOL_INFO("XF86 singlebuffered rendering will be used, no doublebuffering available");
|
||||
EWOL_INFO("GL-X singlebuffered rendering will be used, no doublebuffering available");
|
||||
} else {
|
||||
m_doubleBuffered = true;
|
||||
EWOL_INFO("XF86 doublebuffered rendering available");
|
||||
EWOL_INFO("GL-X doublebuffered rendering available");
|
||||
}
|
||||
{
|
||||
int32_t glxMajor, glxMinor;
|
||||
|
Loading…
x
Reference in New Issue
Block a user