waffle: replace wcore_error_internal with assert()
commitb4feac27b35db637a621655894c7fba66a7343df
authorEmil Velikov <emil.l.velikov@gmail.com>
Tue, 5 Apr 2016 21:58:22 +0000 (5 22:58 +0100)
committerChad Versace <chad.versace@intel.com>
Wed, 15 Jun 2016 15:23:16 +0000 (15 08:23 -0700)
tree678995705ffef540a7892fd65f835a8cc7d3d4f1
parente9b15e7f55aadf63486dccb6f27b36db66787e75
waffle: replace wcore_error_internal with assert()

The upper layer (api/core) already checks and bails out if the provided
value for context_api is invalid. Change the condition to an assert so
that we can catch it as (if) we extend the API and forget to update one
of the backends.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Chad Versace <chad.versace@intel.com>
src/waffle/cgl/cgl_display.m
src/waffle/core/wcore_config_attrs.c
src/waffle/egl/wegl_config.c
src/waffle/egl/wegl_context.c
src/waffle/egl/wegl_display.c
src/waffle/glx/glx_config.c
src/waffle/glx/glx_display.c
src/waffle/nacl/nacl_display.c
src/waffle/wgl/wgl_config.c
src/waffle/wgl/wgl_display.c