Add some graphics tests.
This commit is contained in:
parent
8b5f485d1e
commit
32ace0fcac
3 changed files with 49 additions and 6 deletions
|
@ -40,9 +40,8 @@ std::unique_ptr<GlxInterface> GlxInterface::Create()
|
|||
void GlxInterface::SetupContext(Display* display, int default_screen)
|
||||
{
|
||||
/* Query framebuffer configurations that match visual_attribs */
|
||||
GLXFBConfig* fb_configs = nullptr;
|
||||
int num_fb_configs = 0;
|
||||
fb_configs = glXChooseFBConfig(display, default_screen, visual_attribs, &num_fb_configs);
|
||||
GLXFBConfig* fb_configs = glXChooseFBConfig(display, default_screen, visual_attribs, &num_fb_configs);
|
||||
if (!fb_configs || num_fb_configs == 0)
|
||||
{
|
||||
MLOG_ERROR("glXGetFBConfigs failed");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue