Skip to content

Commit

Permalink
drawing-area: remove GL integration
Browse files Browse the repository at this point in the history
We need to use Gtk::GLArea for GL.
  • Loading branch information
kou committed Sep 18, 2024
1 parent 8c0c1a7 commit d8dc67b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/rabbit/renderer/display/drawing-area-primitive.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
require "rabbit/renderer/engine"
require "rabbit/renderer/display/base"
require 'rabbit/renderer/display/cursor'
require 'rabbit/renderer/display/gl'

module Rabbit
module Renderer
Expand All @@ -29,7 +28,6 @@ module DrawingAreaPrimitive
include Base

include Cursor
include GL

attr_accessor :filename
def initialize(canvas)
Expand All @@ -43,13 +41,9 @@ def attach_to(window, container=nil)
super

set_configure_event

init_gl(@area)
end

def detach
finalize_gl

if !@window.destroyed? and @configure_signal_id
@window.signal_handler_disconnect(@configure_signal_id)
@configure_signal_id = nil
Expand Down

0 comments on commit d8dc67b

Please sign in to comment.