world
This commit is contained in:
@@ -13,6 +13,8 @@
|
||||
|
||||
var effects_mod = use('effects')
|
||||
|
||||
var gpu = use('sdl_gpu')
|
||||
|
||||
var compositor = {}
|
||||
|
||||
// Presentation modes
|
||||
@@ -32,7 +34,7 @@ compositor.BLEND = {
|
||||
}
|
||||
|
||||
// Compile a composition tree into a render plan
|
||||
compositor.compile = function(comp, renderers, backend) {
|
||||
compositor.compile = function(comp, renderers, backend = gpu) {
|
||||
var ctx = {
|
||||
renderers: renderers,
|
||||
backend: backend,
|
||||
@@ -555,7 +557,7 @@ compositor.calculate_presentation_rect = function(source_size, dest_size, mode)
|
||||
}
|
||||
|
||||
// Execute a compiled render plan
|
||||
compositor.execute = function(plan, renderers, backend) {
|
||||
compositor.execute = function(plan, renderers, backend = gpu) {
|
||||
var target_cache = {}
|
||||
|
||||
// Pre-allocate targets
|
||||
|
||||
Reference in New Issue
Block a user